I have a dictionary that has dataframes
in values, something like this -
dict = {'demand': demand_df, 'supply':supply_df, 'prod': prod_df}
then, I have a list like this -
list = ['demand', 'supply', 'prod']
I want to create individual dataframes
objects using a loop, resulting in below -
demand = demand_df
supply = supply_df
prod = prod_df
My try -
for i in list:
i = dict[i]
This obviously is giving an error. How do I correct it?