pandas.Timedelta.round

Timedelta.round(self, freq)

Round the Timedelta to the specified resolution

Parameters
freqa freq string indicating the rounding resolution
Returns
a new Timedelta rounded to the given resolution of freq
Raises
****ValueError if the freq cannot be converted
Scroll To Top