This is how my data looks,
"id","text"
"416752", "i's ** This year’s theme is \"Each for Equal\".** When: Friday March 6th Time: 10:00am-12:00pm Where: HQ 155 Gordon Baker Road, 5th floor, Halifax/Dartmouth Boardoom Please note there are 2 shifts - one to log your attendance for the event and the other to log your donation, if applicable. Structure of the Event 10h00am - 10h15am: Welcome, cupcakes, coffee, social media picture opportunity (#eachforequal) 10h15am – 10h25am: Intro from WIA, IWD, theme introduction, agenda, community initiative: Dress for Success 10h30am – 11h15am: Keynote Speaker (Shasta Townsend) 11h30am – 12h00pm: Panel Stories (Mike Sharun, Dennis Hoffman, Barbara Dahan and Nikki Matarazzo) **"
Below is the logic i have tried:
import csv
import codecs
file_path=r'C:\data.csv'
f = codecs.open(file_path, encoding = "utf8", errors ='replace')
csvreader = csv.reader(f, delimiter=',')
for row in csvreader:
print(row)
Output:
['416752', 'i\'s ** This year’s theme is \\Each for Equal\\".** When: Friday March 6th Time: 10:00am-12:00pm Where: HQ 155 Gordon Baker Road', '5th floor', 'Halifax/Dartmouth Boardoom Please note there are 2 shifts - one to log your attendance for the event and the other to log your donation', 'if applicable. Structure of the Event 10h00am - 10h15am: Welcome', 'cupcakes', 'coffee', 'social media picture opportunity (#eachforequal) 10h15am – 10h25am: Intro from WIA', 'IWD', 'theme introduction', 'agenda', 'community initiative: Dress for Success 10h30am – 11h15am: Keynote Speaker (Shasta Townsend) 11h30am – 12h00pm: Panel Stories (Mike Sharun', 'Dennis Hoffman', 'Barbara Dahan and Nikki Matarazzo) **"']
Instead of two values, i am getting more than that as my data is having many commas.