pyspark.pandas.MultiIndex.fillna#

MultiIndex.fillna(value)#

Fill NA/NaN values with the specified value.

Parameters
valuescalar

Scalar value to use to fill holes (example: 0). This value cannot be a list-likes.

Returns
Index

filled with value

Examples

>>> idx = ps.Index([1, 2, None])
>>> idx
Index([1.0, 2.0, nan], dtype='float64')
>>> idx.fillna(0)
Index([1.0, 2.0, 0.0], dtype='float64')