Categories
pandas python

How to select cells greater than a value in a multi-index Pandas dataframe?

Try 1:

df[ df > 1.0 ] : this returned all cells in NAN.

Try2:

df.loc[ df > 1.0 ] : this returned KeyError: 0

df[df['A']> 1.0] : this works – But I want to apply the filter condition to all columns.