I have this data frame where I have to check if the data has any Nan values. I have used the code 'df.isnull().any()'
, But this gives me an output where it shows a single boolean value for each of the columns whereas I need the output to be a single boolean value for the whole data frame.
Asked
Active
Viewed 29 times
0

avocadoLambda
- 1,332
- 7
- 16
- 33

Alan
- 13
- 3
-
`df.isnull().any(axis=1)`? – Anurag Dabas Aug 07 '21 at 14:14
-
https://stackoverflow.com/a/29530303/9840637 – anky Aug 07 '21 at 14:14
-
This gives me an output where it shows a boolean value for each of the rows in the dataframe. I need the output to be a singe true or false .That is if the whole data frame has any missing value if yes then true if no then false . – Alan Aug 07 '21 at 14:27