0

I saw a few similar question but I didn't find a case like this. It is my first time using pandas DataFrame.

I have DataFrame:

    A    B    C
0   0    1    2
1   0    1    3
2   0    2    4
3   1    1    4
4   1    1    3

and i would like to divide this Data Frame into list of DataFrames based on columns A and B, so I would like to have a 3 three DataFrames in result, like this:

  1.     A    B    C
    0   0    1    2
    1   0    1    3
    

2.

    A    B    C
2   0    2    4

3.

    A    B    C
3   1    1    4
4   1    1    3

Could you write me how to do it please(with explanation)?

Zophai
  • 104
  • 9
Janek Podwysocki
  • 543
  • 1
  • 6
  • 18

0 Answers0