I am using Python in VSCode. I read a CSV file and transformed it in a dataframe for stock market's close prices. First column is date column and others are each stock symbol close prices. I would like to split this dataframe with multiple columns into separate .csv files. Each new .csv file will be named as per each stock symbol column´s header´s name.
Below is a link for the dataframe as example (the original file has like 500 coluns and 10,000 rows):
So, each new .csv file will be named such as "TAEE11.csv"
and so on contain the respective values down that column keeping the "Date" column for each file as well. I would like to save these newly created .csv files to a new folder (like when you are using Python inside VSCode you can save these new .csv files to a new folder with *.to_csv
).