March 2020
Beginner to intermediate
352 pages
8h 40m
English
We can use the isnull() function from the pandas library to identify NaN values:
dfx.isnull()
The output of the preceding code is as follows:

Note that the True values indicate the values that are NaN. Pretty obvious, right? Alternatively, we can also use the notnull() method to do the same thing. The only difference would be that the function will indicate True for the values which are not null.
dfx.notnull()
And the output of this is as follows:

Compare ...
Read now
Unlock full access