Menu

How to export data and store in any file using Python

In the below Python code syntax, we are storing the test_data values in a csv file "my_file_v1.csv" under data folder. 


import pandas as pd

pd.DataFrame({'user_data':test_data}).to_csv('data/my_file_v1.csv',index=False)

No comments:

Post a Comment