xarray.core.accessor_dt.TimedeltaAccessor.round#
- TimedeltaAccessor.round(freq)[source]#
Round timestamps to specified frequency resolution.
- Parameters:
freq (
str
) โ a freq string indicating the rounding resolution e.g. โDโ for daily resolution- Returns:
rounded timestamps (
same type as values
) โ Array-like of datetime fields accessed for each element in values