Skip to content

DOC: Reference to deprecated week and weekofyear attributes #57887

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
1 task done
tray3j opened this issue Mar 18, 2024 · 1 comment · Fixed by #57901
Closed
1 task done

DOC: Reference to deprecated week and weekofyear attributes #57887

tray3j opened this issue Mar 18, 2024 · 1 comment · Fixed by #57901
Labels

Comments

@tray3j
Copy link

tray3j commented Mar 18, 2024

Pandas version checks

  • I have checked that the issue still exists on the latest versions of the docs on main here

Location of the documentation

https://pandas.pydata.org/docs/dev/user_guide/timeseries.html#time-date-components

Documentation problem

Per this discussion: https://github.com/pandas-dev/pandas/issues/55092 the week and weekofyear attributes are deprecated since 1.1.0 and DatetimeIndex.isocalendar().week is now recommended.

Suggested fix for documentation

We should update the user guide to reflect isocalendar().week funcitonality. We should delete the rows in the table relating to week and weekofyear attributes under .dt. A reference already exists to isocalendar() but it is currently not clear to the user that this is the only way to access week of year date information.

@tray3j tray3j added Docs Needs Triage Issue that has not been reviewed by a pandas team member labels Mar 18, 2024
@lithomas1 lithomas1 removed the Needs Triage Issue that has not been reviewed by a pandas team member label Mar 18, 2024
@lithomas1
Copy link
Member

PRs would be welcome.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants