cudf.Index.fillna#

Index.fillna(value, downcast=None)#

Fill null values with the specified value.

Parameters
valuescalar

Scalar value to use to fill nulls. This value cannot be a list-likes.

downcastdict, default is None

This Parameter is currently NON-FUNCTIONAL.

Returns
filledIndex

Examples

>>> import cudf
>>> index = cudf.Index([1, 2, None, 4])
>>> index
Int64Index([1, 2, <NA>, 4], dtype='int64')
>>> index.fillna(3)
Int64Index([1, 2, 3, 4], dtype='int64')