pandas.Series.pad
- Series.pad(*, axis=None, inplace=False, limit=None, downcast=<no_default>)
Fill NA/NaN values by propagating the last valid observation to next valid.
- Returns
Fill NA/NaN values by propagating the last valid observation to next valid.
Object with missing values filled or None if inplace=True.
Please see examples for DataFrame.ffill() or Series.ffill().