pandas.DatetimeIndex.snap

DatetimeIndex.snap(self, freq='S')[source]

Snap time stamps to nearest occurring frequency.

Returns
DatetimeIndex