I have a dataframe:
A B C
1/2/2007 np.Nan 6.3 np.Nan
1/3/2007 np.Nan np.Nan 3.2
1/4/2007 np.Nan np.Nan np.Nan
1/5/2007 -999 np.Nan 7.3
1/6/2007 np.Nan -999 np.Nan
1/7/2007 np.Nan np.Nan 3.1
1/8/2007 np.Nan -999 np.Nan
How can I get a count of columns with the value -999?
Not the number of occurrences in the dataframe or the number of occurrances per column but the number of the columns with the value?
The correct answer here would be 2 since columns A and B have at least one occurance of -999 which column C has 0 occurrances.