human
How to access pandas groupby dataframe by key
assistant
Here is some code to get data of column 'A' and column 'B' in dataframe `df` where column 'A' is equal to 'foo'

df.loc[gb.groups['foo'], ('A', 'B')]

#Warning: this code generation is experimental. Please inspect the code for any bugs before executing.