Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to save dataframe as csv in python

new_df.to_csv("data.csv",index=False)

#if want to transpose and save it then

new_df.T.to_csv("data.csv",index=False)


#If this works, you can buy me a coffee.
# https://www.buymeacoffee.com/eyolve 
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #save #dataframe #csv #python
ADD COMMENT
Topic
Name
9+3 =