Pandas: Data Manipulation - isna() function

isna() function

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

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




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 missing.


Download the above Notebook from here.

Previous: wide_to_long() function
Next: isnull() function