bigframes.pandas.Index.fillna#

Index.fillna(value=None) Index[source]#

Fill NA (NULL in BigQuery) values using the specified method.

Note that empty strings '', numpy.inf, and numpy.nan are *not* considered NA values. This NA/NULL logic differs from numpy, but it is the same as BigQuery and the pandas.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.