I am trying to convert my txt file to pandas dataframe.
First multiple lines are like this,
['Tue Sep 12 15:13:56 +0000 2017', 'text. ', 0, 'en', 390, 529, 7138, 15727, False, -84.395235, 33.771232]
['Tue Sep 12 15:13:59 +0000 2017', "text", 0, 'en', 648, 891, 2087, 5801, False, -84.321948, 33.752879]
['Tue Sep 12 15:14:01 +0000 2017', 'text', 0, 'en', 217, 222, 959, 958, False, -82.849182, 27.865251]
['Tue Sep 12 15:14:06 +0000 2017', 'text', 0, 'en', 71, 85, 2357, 1290, False, -82.29976, 27.857254]
Explanation for each element in each list is,
time, text, retweet_count, language, friends_count, followers_count, favourites_count, status_count, verified
I used pandas, but it does not work what I tend to.
df = pd.read_csv("second.txt", sep=',')
Then I have almost 100,000 columns, 0 rows. How can I convert this file to dataframe successfully? Thanks!
txtfile together.