Forward fill the values.
Limit of how many values to fill.
Object with missing values filled.
See also
Series.pad
DataFrame.pad
Series.fillna
DataFrame.fillna
pandas.core.groupby.DataFrameGroupBy.nunique
pandas.core.groupby.DataFrameGroupBy.pct_change