Fill NA/NaN values by propagating the last valid observation to next valid.
Deprecated since version 2.0: Series/DataFrame.pad is deprecated. Use Series/DataFrame.ffill instead.
Object with missing values filled or None if inplace=True.
Examples
Please see examples for DataFrame.ffill() or Series.ffill().
© 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.Series.pad.html