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.None is 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:
  • axis (0 or'index') – Unused. Parameter needed for compatibility with DataFrame.

  • inplace (bool,default False) – Unsupported, do not set.

  • how (str,optional) – Not in use. Kept for compatibility.

Returns:

Series with NA entries dropped from it.

Return type:

bigframes.pandas.Series

On this page

This Page