pandas.api.extensions.ExtensionArray.dropna#

ExtensionArray.dropna()[源代码][源代码]#

返回不包含 NA 值的 ExtensionArray。

返回:
Self

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

参见

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.

示例

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