pandas.api.extensions.ExtensionArray.fillna

pandas 3.1.1 · Extensions · method

Replace missing values with supplied replacements, such as a scalar or values aligned by label.

Call syntax

pd.api.extensions.ExtensionArray.fillna(value, limit=None, copy=True)

Run the example

Edit the example and select Run Python to see the result.

Parameters

ParameterRequirementAccepted values and behavior
value Required
Positional or keyword
scalar, array-like

Provide the value used for the documented operation, such as a replacement or a test point.

limit Optional
Positional or keyword
Default None
int

Set a maximum number of items affected by the operation.

copy Optional
Positional or keyword
Default True
bool

Control whether data is copied where the API supports that choice.

Returns

ExtensionArray