Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

df to csv

>>> df = pd.DataFrame({'name': ['Raphael', 'Donatello'],
...                    'mask': ['red', 'purple'],
...                    'weapon': ['sai', 'bo staff']})
>>> df.to_csv(index=False)
Source by pandas.pydata.org #
 
PREVIOUS NEXT
Tagged: #df #csv
ADD COMMENT
Topic
Name
2+6 =