Converting data in csv

Hi have done some backtesting in few stocks… List of stocks are more than 25. So pythin notebook does not show whole list of stocks with their value. Hence I need to convert it into either excel or csv.

How to do that?



 

Export the data frame to excel/csv.

eg :- pd.to_excel or pd.to_csv.

You can use dataframe_name.to_csv('<<csv_file_name>>').