w3resource

Pandas DataFrame: notna() function

DataFrame - notna() function

The notna() function is used to detect existing (non-missing) values.

Return a boolean same-sized object indicating if the values are not NA. Non-missing values get mapped to True..

Syntax:

DataFrame.notna(self)

Returns: DataFrame - Mask of bool values for each element in DataFrame that indicates whether an element is not an NA value.

Example:


Download the Pandas DataFrame Notebooks from here.

Previous: DataFrame - isna() function
Next: DataFrame - head() function



Become a Patron!

Follow us on Facebook and Twitter for latest update.

It will be nice if you may share this link in any developer community or anywhere else, from where other developers may find this content. Thanks.

https://w3resource.com/pandas/dataframe/dataframe-notna.php