You are viewing documentation about an older version (1.23.0). View latest version

modin.pandas.Series.dt.isocalendar

Series.dt.isocalendar[source] (https://github.com/snowflakedb/snowpark-python/blob/v1.23.0/../../../../../opt/hostedtoolcache/Python/3.9.20/x64/lib/python3.9/site-packages/modin/pandas/series_utils.py#L785-L788)

Calculate year, week, and day according to the ISO 8601 standard.

Returns:

With columns year, week, and day.

Return type:

DataFrame

Examples

>>> ser = pd.Series(pd.date_range("2020-05-01", periods=5, freq="4D"))
>>> ser.dt.isocalendar()
   year  week  day
0  2020    18    5
1  2020    19    2
2  2020    19    6
3  2020    20    3
4  2020    20    7
Copy
Language: English