I would like to save a python list in a .csv file, for example I have a list like this:
.csv
[\'hello\',\'how\',\'are\',\'you\']
I woul
use pandas to_csv (http://pandas.pydata.org/pandas-docs/dev/generated/pandas.DataFrame.to_csv.html)
to_csv
>>> import pandas as pd >>> df = pd.DataFrame(some_list, columns=["colummn"]) >>> df.to_csv('list.csv', index=False)