I've seen multiple questions asked on how to define your own function that does things similar to this, but I can't figure out how to use timedelta's built in function. Does anyone have an example of a use of timedelta.round()? I have timedelta objects that I want to round to the closest full-day.
Documentation at https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.Timedelta.round.html is:
Timedelta.round
Round the Timedelta to the specified resolution
Parameters:
freq : a 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