pandas.api.typing.DataFrameGroupBy.bfill

pandas 3.1.1 · GroupBy · method

Fill a gap using the next available value along the selected direction.

Call syntax

pd.api.typing.DataFrameGroupBy.bfill(limit=None)

Run the example

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

Parameters

ParameterRequirementAccepted values and behavior
limit Optional
Positional or keyword
Default None
int

Set a maximum number of items affected by the operation.

Returns

Series or DataFrame