Fill NA/NaN values by using the next valid observation to fill the gap.
Deprecated since version 2.0: Series/DataFrame.backfill is deprecated. Use Series/DataFrame.bfill instead.
Object with missing values filled or None if inplace=True.
Examples
Please see examples for DataFrame.bfill() or Series.bfill().
© 2008–2011, AQR Capital Management, LLC, Lambda Foundry, Inc. and PyData Development Team
© 2011–2025, Open source contributors
Licensed under the 3-clause BSD License.
https://pandas.pydata.org/pandas-docs/version/2.3.0/reference/api/pandas.DataFrame.backfill.html