pandas.Timedelta.round#

Timedelta.round(freq)#

将Timedelta舍入到指定的分辨率。

参数
freq应力

表示舍入分辨率的频率字符串。

退货
新的Timedelta四舍五入到给定的分辨率 freq
加薪
如果无法转换频率,则返回ValueError