Hello guys, sorry to disturb you all; I'm learning some basics pandas filtering. I just learnt that we can use boolean masks (from what I've understood, a boolean mask is just a set of columns and rows where each cell is mask with a True/False value used to filter data - please do correct me if I'm wrong) Can someone explain why the following statement doesn't work while the other work please:
rewards_df[rewards_df.isna().sum() > 0] // didn't work
rewards_df.isna().sum()[rewards_df.isna().sum() > 0] // this one work
Why the first one is incorrect