I have a pandas dataframe object in this way:
I want to create multiple dataframes from it grouped on user and alt_user columns. Basically, each newly created dataframe should have unique combination of user and alt_user.
Output:
So far I have used dataframe1.groupby(['user', 'alt_user']) But this does not create multiple dataframes.