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
This enhancement request is to add an accessor to DatetimeProperties for the ISO year, which is the year corresponding to the week calculated via ISO 8601.
Currently, we can access the ISO week via week and weekofyear, andTimestamp objects provide isocalendar, which returns the correct ISO year, week, and day.
As a result of discussions in #33220, we decided to add an isocalendar accessor. For more details, see the comment thread there. I will update this issue accordingly.
mgmarino
changed the title
ENH: Include accessor for ISO year (corresponding to weekofyear)
ENH: Add accessor for isocalendar returning iso year, week, and day
Apr 3, 2020
This enhancement request is to add an accessor to DatetimeProperties for the ISO year, which is the year corresponding to the week calculated via ISO 8601.
Currently, we can access the ISO week via
week
andweekofyear
, andTimestamp
objects provideisocalendar
, which returns the correct ISO year, week, and day.Examples
For example:
outputs:
and accessing the Timestamp objects
yields
It would be great to have an accessor to get access this isocalendar year value for a series, e.g.:
or maybe even better to have an isocalendar accessor where the same iso values are available like in
Timestamp.isocalendar
, e.g.I am happy to try a PR here, but some input would be great as to:
The text was updated successfully, but these errors were encountered: