You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As noted in #4908 , pandas plans to eventually deprecate series.dt.week and series.dt.weekofyear in favor of series.dt.isocalendar().week. The isocalendar() method returns a DataFrame containing the ISO 8601 year, week of year (number), and day of week (1-7, rather than 0-6 like series.dt.dayofweek).
It also exists on the Timestamp class, on which it returns a tuple of the three values. This use case is generally less common.
This feature should probably come after #4908 , as weekofyear | week were marked for deprecation in pandas 1.1 but are still alive and kicking in 1.3.
As noted in #4908 , pandas plans to eventually deprecate
series.dt.week
andseries.dt.weekofyear
in favor ofseries.dt.isocalendar().week
. Theisocalendar()
method returns a DataFrame containing the ISO 8601 year, week of year (number), and day of week (1-7, rather than 0-6 like series.dt.dayofweek).It also exists on the Timestamp class, on which it returns a tuple of the three values. This use case is generally less common.
This feature should probably come after #4908 , as
weekofyear | week
were marked for deprecation in pandas 1.1 but are still alive and kicking in 1.3.The text was updated successfully, but these errors were encountered: