Answers for "export dataframe to csv in a speciifc location"

4

save dataframe to csv without index

df.to_csv(f"{filename}", index=False)
Posted by: Guest on March-07-2021
2

save dataframe as csv

df.to_csv(r'Path where you want to store the exported CSV fileFile Name.csv')
Posted by: Guest on July-19-2020

Code answers related to "export dataframe to csv in a speciifc location"

Python Answers by Framework

Browse Popular Code Answers by Language