I've generated a Pandas dataframe from an nested dictionary, which looks like this:
Col1 Col2 Col3
XXX aaa 1 8 1
bbb 9 7 4
ccc 3 5 9
ddd 2 7 2
YYY aaa 8 7 6
bbb 1 7 3
ccc 2 4 5
ddd 2 1 1
ZZZ aaa 2 2 4
bbb 1 7 5
ccc 0 1 2
ddd 0 9 6
I'm now struggling with following tasks:
1.getting all data, where the second index = "bbb" including the first index value, like in this example:
Col1 Col2 Col3
XXX bbb 1 8 1
YYY bbb 8 7 6
ZZZ bbb 2 2 4
2.grouping the dataframe in several dataframes grouped by the first Index Values ("XXX", "YYY", ... )
Browsing through the Pandas doc and related stackoverflow questions didn' bring me further ...