Python Forum
CSV file with irregular structure
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
CSV file with irregular structure
#8
(May-17-2017, 06:31 PM)ulrich48155 Wrote: Do you think it would even be possible to really connect the parts that were splitted over different rows? Now, when opening the compressed file with excel, some of the rows are seperated with blank columns. In order to do the sentiment analysis this still would require a great deal of manual work.

Do you mean two tweets separated by empty space in one line? That code writes new line only before row starting with timestamp|, so if there are tweets starting say with <space>timestamp|, they will be concatenated to previous one. This could be solved by changing pattern to match such lines (while increasing risk of breaking tweet in its message). Please post small sample of your input data that leads to "empty columns".
Reply


Messages In This Thread
CSV file with irregular structure - by ulrich48155 - May-16-2017, 10:40 AM
RE: CSV file with irregular structure - by Larz60+ - May-16-2017, 10:57 AM
RE: CSV file with irregular structure - by Ofnuts - May-16-2017, 12:17 PM
RE: CSV file with irregular structure - by Ofnuts - May-16-2017, 07:46 PM
RE: CSV file with irregular structure - by zivoni - May-16-2017, 11:03 PM
RE: CSV file with irregular structure - by zivoni - May-20-2017, 09:34 AM
RE: CSV file with irregular structure - by zivoni - May-22-2017, 07:35 PM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020