cudf.DatetimeIndex.isocalendar#

DatetimeIndex.isocalendar() DataFrame[source]#

Returns a DataFrame with the year, week, and day calculated according to the ISO 8601 standard.

Returns:
DataFrame
with columns year, week and day

Examples

>>> gIndex = cudf.DatetimeIndex(["2020-05-31 08:00:00",
...    "1999-12-31 18:40:00"])
>>> gIndex.isocalendar()
                     year  week  day
2020-05-31 08:00:00  2020    22    7
1999-12-31 18:40:00  1999    52    5