GeneralMills / pytrends

Pseudo API for Google Trends
Other
3.28k stars 821 forks source link

writing to csv #89

Closed Eroizman closed 7 years ago

Eroizman commented 7 years ago

after running the code how to export to csv?

candoz commented 7 years ago

I use this method:

df = pytrends.trend(payload, return_type='dataframe')
df.to_csv(<YOUR_FILEPATH>)

See here for more details about "to_csv()" in official pandas documentation: http://pandas.pydata.org/pandas-docs/stable/generated/pandas.DataFrame.to_csv.html

Bye!