I\'m suspicious that this is trivial, but I yet to discover the incantation that will let me select rows from a Pandas dataframe based on the values of a hierarchical key. S
Syntax like the following will work:
df.ix['a'] df.ix['a'].ix['c']
since group1 and group2 are indices. Please forgive my previous attempt!
group1
group2
To get at the second index only, I think you have to swap indices:
df.swaplevel(0,1).ix['c']
But I'm sure Wes will correct me if I'm wrong.