w3resource

Pandas: Data Manipulation - notna() function

notna() function

The notna() function is used to detect non-missing values for an array-like object.

This function takes a scalar or array-like object and indicates whether values are valid (not missing, which is NaN in numeric arrays, None or NaN in object arrays, NaT in datetimelike).

Syntax:

pandas.notna(obj)

Parameters:

Name Description Type Required / Optional
obj Object to check for null or missing values. scalar or array-like Required

Returns: bool or array-like of bool
For scalar input, returns a scalar boolean. For array input, returns an array of boolean indicating whether each corresponding element is valid.

Example:


Download the Pandas DataFrame Notebooks from here.

Previous: isnull() function
Next: notnull() 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://www.w3resource.com/pandas/notna.php