pandas.core.resample.Resampler.nearest

Resampler.nearest(limit=None)[source]

Fill values with nearest neighbor starting from center

Parameters:

limit : integer, optional

limit of how many values to fill

New in version 0.21.0.

Returns:

an upsampled Series

See also

Series.fillna, DataFrame.fillna

Scroll To Top