bigframes.pandas.DatetimeIndex.fillna#
- DatetimeIndex.fillna(value=None) Index#
Fill NA (NULL in BigQuery) values using the specified method.
Note that empty strings
'',numpy.inf, andnumpy.nanare *not* considered NA values. This NA/NULL logic differs from numpy, but it is the same as BigQuery and thepandas.ArrowDtype.Examples:
>>> idx = bpd.Index( ... pa.array([None, np.nan, 3, None], type=pa.float64()), ... dtype=pd.ArrowDtype(pa.float64()), ... ) >>> idx Index([<NA>, nan, 3.0, <NA>], dtype='Float64') >>> idx.fillna(0) Index([0.0, nan, 3.0, 0.0], dtype='Float64')
- Parameters:
value (scalar) – Scalar value to use to fill holes (e.g. 0). This value cannot be a list-likes.
- Returns:
bigframes.pandas.Index
- Raises:
TypeError – MultiIndex with more than 1 level does not support
fillna.