Fill NA/NaN values with the specified value.
Scalar value to use to fill holes (e.g. 0). This value cannot be a list-likes.
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.
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