I have grouped a DataFrame using data.groupby('column)
and now I want to create a dataframe from each group:
for i in data_group.indices:
i = data_group.get_group(i)
I can print the dataframes out within the for-loop, but I can't access them otherwise... Somehow the naming of the DataFrame
with a variable is not working. Does anyone have a solution?