Resampler.
ffill
Forward fill the values.
Limit of how many values to fill.
See also
Series.fillna
DataFrame.fillna