pandas.core.groupby.GroupBy.backfill

GroupBy.backfill(limit=None)[source]

Backward fill the values.

Parameters
limit:int, optional

Limit of how many values to fill.

Returns
Series or DataFrame

Object with missing values filled.

See also

Series.backfill

Backward fill the missing values in the dataset.

DataFrame.backfill

Backward fill the missing values in the dataset.

Series.fillna

Fill NaN values of a Series.

DataFrame.fillna

Fill NaN values of a DataFrame.

© 2008–2021, AQR Capital Management, LLC, Lambda Foundry, Inc. and PyData Development Team
Licensed under the 3-clause BSD License.
https://pandas.pydata.org/pandas-docs/version/1.3.4/reference/api/pandas.core.groupby.GroupBy.backfill.html