I have 600 csv files that I want to read to separate data frames using pd.read.csv. I have tried the code below.
for stock in stock_list:
df_stock = pd.read_csv("D:/Stocks/CSV/" + stock + ".csv")
I want every dataframe to be stored separately as df_the respective stock name in stock_list (for example df_pfizer, df_ICBC and so on) but instead my code is reading it into a single dataframe. The stock names are in the list stock_list.