pandas.Timedelta.ceil#
- Timedelta.ceil(freq)#
Return a new Timedelta ceiled to this resolution.
- Parameters:
- freqstr
Frequency string indicating the ceiling resolution. It uses the same units as class constructor
Timedelta
.
Examples
>>> td = pd.Timedelta('1001ms') >>> td Timedelta('0 days 00:00:01.001000') >>> td.ceil('s') Timedelta('0 days 00:00:02')