Round Numbers and Days Up in Python

>> import math >> math.ceil(1.1) 2 Timedelta(’21 days 15:00:00′) >> pd.Timedelta.ceil(, freq = ‘d’) Timedelta(’22 days 00:00:00′) Use Case: I have a DataFrame with two sets of dates and the difference between them. There are two different ways to get a rounded up number of days, depending if you want a Timedelta or an integer. […]