makedataset.py
309 Bytes
import pandas as pd
from tqdm import tqdm
data=open("sms-call-internet-mi-2013-11-01.txt").read()
lines_of_data=data.splitlines()
tmp = []
for i in tqdm(range(len(lines_of_data))):
tmp.append(lines_of_data[i].split())
data_df = pd.DataFrame(tmp)
data_df.to_csv('dataset.csv')
data_df.shape
data_df.ndim