We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
import pandas as pd df = pd.DataFrame( { "Date": [ pd.to_datetime("2016-01-01"), pd.to_datetime("2016-01-04"), pd.to_datetime("2016-01-05"), pd.to_datetime("2016-01-06"), pd.to_datetime("2016-01-07"), pd.to_datetime("2016-01-08"), ] } ) df["Date"].dt.isocalendar().year
new function .dt.isocalendar().year returns wrong value for the day of pd.to_datetime('2016-01-08'). It is supposed to return 2016 but 2017
please check on that
The text was updated successfully, but these errors were encountered:
add test for bug pandas-dev#36032
d49df7f
Successfully merging a pull request may close this issue.
Code Sample, a copy-pastable example
Problem description
new function .dt.isocalendar().year returns wrong value for the day of pd.to_datetime('2016-01-08'). It is supposed to return 2016 but 2017
please check on that
The text was updated successfully, but these errors were encountered: