new to pandas and I think I'm missing something really basic about dataframes.
e=pd.DataFrame(data={'a':[1,1,2,2,3,3],'b':[7,8,9,10,11,12],'c':[20,21,22,23,24,25]}).set_index(['a','c'])
how would I filter this dataframe based on the index a
being greater than 2?
e.query('"a" > 2')
gives me
'>' not supported between instances of 'list' and 'int'