On this page
pandas.Index.fillna
- Index.fillna(value=None, downcast=None)[source]
-
Fill NA/NaN values with the specified value.
- Parameters
-
- value:scalar
-
Scalar value to use to fill holes (e.g. 0). This value cannot be a list-likes.
- downcast:dict, default is None
-
A dict of item->dtype of what to downcast if possible, or the string ‘infer’ which will try to downcast to an appropriate equal type (e.g. float64 to int64 if possible).
- Returns
-
- Index
See also
-
DataFrame.fillna
-
Fill NaN values of a DataFrame.
-
Series.fillna
-
Fill NaN Values of a Series.
© 2008–2022, AQR Capital Management, LLC, Lambda Foundry, Inc. and PyData Development Team
Licensed under the 3-clause BSD License.
https://pandas.pydata.org/pandas-docs/version/1.5.0/reference/api/pandas.Index.fillna.html