Series.
dropna
Return a new Series with missing values removed.
There is only one axis to drop values from.
If True, do operation inplace and return None.
Not in use.
Series with NA entries dropped from it.
Examples
>>> ser = ps.Series([1., 2., np.nan]) >>> ser 0 1.0 1 2.0 2 NaN dtype: float64
Drop NA values from a Series.
>>> ser.dropna() 0 1.0 1 2.0 dtype: float64
Keep the Series with valid entries in the same variable.
>>> ser.dropna(inplace=True) >>> ser 0 1.0 1 2.0 dtype: float64