Converting DataFrame into CSV
import pandas as pd df=pd.DataFrame({"Apple":[21]}) df.to_csv('file_name.csv')
Tags: python, pandas, datascience