How do I get Multiple CSV files (csv file names will be column names) from a folder to a pandas dataframe?
I think the title is enough for what is my problem here. I have 100 tickers in a folder. I got all csv files to one list. but I wanna see the tickers name which these are csv file names.
what should I do for getting all tickers like that. I'm doing it manually but I need a simple way to do that.
import pandas as pd
import os
#BİST100-2010.01.01-2020.07.01/ is my folder.
log_total = []
for file in os.listdir('BİST100-2010.01.01-2020.07.01/'):
log_total.append(pd.read_csv('BİST100-2010.01.01-2020.07.01/'+file+''))
by the way after I do that I got this.