Skip to main content
`Ctrl`+`K`

# pandas.api.extensions.ExtensionArray.dropna

ExtensionArray.dropna()

  Return ExtensionArray without NA values.

  This method removes all missing values from the array, returning a new ExtensionArray containing only non-NA values.

  Returns:
    Self

      An ExtensionArray of the same type as the original but with all NA values removed.

  See also

  `Series.dropna`

    Remove missing values from a Series.

  `DataFrame.dropna`

    Remove missing values from a DataFrame.

  `api.extensions.ExtensionArray.isna`

    Check for missing values in an ExtensionArray.

  Examples

      >>> pd.array([1, 2, np.nan]).dropna()
      <IntegerArray>
      [1, 2]
      Length: 2, dtype: Int64