Skip to content
Advertisement

wont create a csv file [closed]

JavaScript

It still won’t create a all_data.csv file.

Advertisement

Answer

https://pandas.pydata.org/docs/reference/api/pandas.DataFrame.to_csv.html

According to this, 1st argument is path. From your example it will save your .csv in the same folder in which you are running your .py file from. If you want to change this to something else

JavaScript

replace "all_data.csv" to an absolute or relative path to the location you want it saved to?

User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement