def store_data(company, url, title, date, text):
data = {'company_id': [], 'title':[],'date':[], 'link':[], 'main_headline':[] ,'main_headline_text':[]}
data['company_id'].append('example')
data['title'].append(title)
data['date'].append(date)
data['link'].append(url)
data['main_headline'].append(title)
data['main_headline_text'].append(text)
df = pd.DataFrame(data)
df.to_csv(company+'10k'+'.csv', index=False, line_terminator='\n')
return df
'text' is a string. when the data frame gets stored to csv, the following changes occur.
original text : The move is in alignment with abc Group’s vision of “building a world-leading clean energy and chemical company” and its development pattern of “One Foundation, Two Wings and Three Growth Points”, creating synergy of financial investment with industry, and contributing to another big step of abc in new energy and new materials.
text in csv : The move is in alignment with abc Group’s vision of “building a world-leading clean energy and chemical company†and its development pattern of “One Foundation, Two Wings and Three Growth Pointsâ€, creating synergy of financial investment with industry, and contributing to another big step of abc in new energy and new materials.
why is this happening? how can I avoid it so that the original text, even if it's not in english, comes as it is in the csv?