bigframes.pandas.Series.dropna#
- Series.dropna(*,axis:int=0,inplace:bool=False,how:str|None=None,ignore_index:bool=False)→Series[source]#
Return a new Series with missing values removed.
Examples:
Drop NA values from a Series:
>>>ser=bpd.Series([1.,2.,np.nan])>>>ser0 1.01 2.02 <NA>dtype: Float64
>>>ser.dropna()0 1.01 2.0dtype: Float64
Empty strings are not considered NA values.
Noneis considered an NA value.>>>ser=bpd.Series(['2',pd.NA,'',None,'I stay'],dtype='object')>>>ser0 21 <NA>23 <NA>4 I staydtype: string
>>>ser.dropna()0 224 I staydtype: string
- Parameters:
- Returns:
Series with NA entries dropped from it.
- Return type:
On this page