I have a very large dataframe (around 1 million rows) with data from an experiment (60 respondents).
I would like to split the dataframe into 60 dataframes (a datafra
The method based on list comprehension and groupby- Which stores all the split dataframe in list variable and can be accessed using the index.
groupby
Example
ans = [pd.DataFrame(y) for x, y in DF.groupby('column_name', as_index=False)] ans[0] ans[0].column_name