If I have a dataframe with duplicates in the index, how would I create a set of dataframes with no duplicates in the index?
More precisely, given the dataframe:
a b
1 1 6
1 2 7
2 3 8
2 4 9
2 5 0
I would want as output, a list of dataframes:
a b
1 1 6
2 3 8
a b
1 2 7
2 4 9
a b
2 5 0
This needs to be scalable to as many dataframes as needed based on the number of duplicates.