pandas.api.typing.SeriesGroupBy.ffill

pandas 3.1.1 · GroupBy · method

Fill gaps with the most recent available value in the selected direction.

Call syntax

pd.api.typing.SeriesGroupBy.ffill(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