iam new in python and wanna create multiple data frames from another dataframe in a loop. i have a dataframe like below and want to create dataframes for each period and want to put period id as a name for each created dataframes.
id period
1 1167
2 1167
3 1168
4 1168
5 1169
6 1169
...
i have tried something like below
for i in KAI_stores['period']: i=pd.DataFrame()
in the end i want to have
first df named as 1167
id period
1 1167
2 1167
second df named as 1168
id period
3 1168
4 1168
and ... for each period