pandas.api.extensions.ExtensionArray.isna

ExtensionArray.isna() [source]

A 1-D array indicating if each value is missing.

Returns:
na_values : Union[np.ndarray, ExtensionArray]

In most cases, this should return a NumPy ndarray. For exceptional cases like SparseArray, where returning an ndarray would be expensive, an ExtensionArray may be returned.

Notes

If returning an ExtensionArray, then

  • na_values._is_boolean should be True
  • na_values should implement ExtensionArray._reduce()
  • na_values.any and na_values.all should be implemented

© 2008–2012, AQR Capital Management, LLC, Lambda Foundry, Inc. and PyData Development Team
Licensed under the 3-clause BSD License.
https://pandas.pydata.org/pandas-docs/version/0.24.2/reference/api/pandas.api.extensions.ExtensionArray.isna.html