I have this kind of dataFrame which I would like to split into seperate dataframes:
A B C Mark
3 5 6 T
4 5 2 T
3 4 5 B
5 6 7 B
3 4 5 T
2 5 2 T
For instance the table above should be split into three pandas dataframes. First dataframe the two rows with Mark "T" as one dataframe, the second dataframe the next two rows with Mark "B" and the third dataframe the last two rows with Mark "T".
df1
A B C Mark
3 5 6 T
4 5 2 T
df2
A B C Mark
3 4 5 B
5 6 7 B
df3
A B C Mark
3 4 5 T
2 5 2 T