A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://pandas.pydata.org/pandas-docs/stable/reference/api/../api/pandas.Index.fillna.html below:

pandas.Index.fillna — pandas 2.3.1 documentation

pandas.Index.fillna#
Index.fillna(value=None, downcast=<no_default>)[source]#

Fill NA/NaN values with the specified value.

Parameters:
valuescalar

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

downcastdict, 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).

Deprecated since version 2.1.0.

Returns:
Index

Examples

>>> idx = pd.Index([np.nan, np.nan, 3])
>>> idx.fillna(0)
Index([0.0, 0.0, 3.0], dtype='float64')

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4