pandas.api.extensions.ExtensionArray.dropna#
- ExtensionArray.dropna()[source]#
Return ExtensionArray without 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