Is there a way to read multiple csv files into Pandas through a loop and define them as such?
for i in [\'a\', \'b\', \'c\', \'d\']: csv_(i) = pd.read_c
You can use dict comprehension for dict of DataFrames:
dict comprehension
dict
DataFrames
dfs = {i: pd.read_csv('C:/test_{}.csv'.format(i)) for i in ['a', 'b', 'c', 'd']} print (dfs['a'])