pandas.core.groupby.GroupBy.ffill

GroupBy.ffill(self, limit=None)[source]

Forward fill the values.

Parameters
limitint, optional

Limit of how many values to fill.

Returns
Series or DataFrame

Object with missing values filled.

See also

Series.pad
DataFrame.pad
Series.fillna
DataFrame.fillna