cudf.DatetimeIndex.ceil#
- DatetimeIndex.ceil(freq)[source]#
Perform ceil operation on the data to the specified freq.
- Parameters:
- freqstr
One of [“D”, “H”, “T”, “min”, “S”, “L”, “ms”, “U”, “us”, “N”]. Must be a fixed frequency like ‘S’ (second) not ‘ME’ (month end). See frequency aliases for more details on these aliases.
- Returns:
- DatetimeIndex
Index of the same type for a DatetimeIndex
Examples
>>> import cudf >>> gIndex = cudf.DatetimeIndex([ ... "2020-05-31 08:05:42", ... "1999-12-31 18:40:30", ... ]) >>> gIndex.ceil("T") DatetimeIndex(['2020-05-31 08:06:00', '1999-12-31 18:41:00'], dtype='datetime64[ns]')