cudf.Series.dt#
- property Series.dt#
Accessor object for datetime-like properties of the Series values.
- Returns:
- A Series indexed like the original Series.
- Raises:
- TypeError if the Series does not contain datetimelike values.
Examples
>>> s = cudf.Series(cudf.date_range( ... start='2001-02-03 12:00:00', ... end='2001-02-03 14:00:00', ... freq='1H')) >>> s.dt.hour 0 12 1 13 dtype: int16 >>> s.dt.second 0 0 1 0 dtype: int16 >>> s.dt.day 0 3 1 3 dtype: int16