human
How to select only specific columns from a DataFrame with MultiIndex columns?
assistant
Here is some code to from multiIndexed dataframe `data` select columns `a` and `c` within each higher order column `one` and `two`

data.loc[:, (list(itertools.product(['one', 'two'], ['a', 'c'])))]

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