-
-
Notifications
You must be signed in to change notification settings - Fork 18.2k
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
ENH: weekday of year, common behavior accessor #6936
Comments
related bug (not excactly dupe) of #6538 want to have a go at fixing? |
Do you know the reason for the code that exists under the 'woy' case? It seems overly complicated, but I may be missing a corner case where my simple solution doesn't work. Don't mind helping out, but want to make sure I understand the issue. https://github.com/pydata/pandas/blob/master/pandas/tslib.pyx#L2255 |
their are some tests in I am not sure of the reason for the estimate then verify (though maybe its the leap year issue). you can add in your posted case as a test, have it fail, then fix (and don't break other tests). |
So I fixed it and it broke the existing weekofyear test. After digging in, the existing code does conform to the ISO standard. Though it is not intuitive and leads to unexpected results when you try to do group bys using it. Thoughts on adding a new DatetimeIndex attribute to help solve this? It may make sense to create an iso_weekofyear attribute from the existing to clearly distinguish them. |
that makes sense changing the name would require a deprecation cycle. maybe add as open to adding |
Sorry about the question, but where I can find weekofyear_common? |
see #7028, but was closed as stale (not finished), you are welcome to revive. |
@vitorcurtis This is an open issue, which means it is not yet implemented (update, yes see @jreback answer) |
BTW, when someone wants to implement this, important question that first should be answered is what would exactly be the definition of such a 'common week'. |
I believe that more definitions are never a good path, so my opinion is to use the definition PR #7028. |
Any progress with this? |
you are welcome to submit a PR |
See below. Dates from the last week of December 2013 are interpreted as being from the first week of the year. Is this due to the fact December 30th was a Monday?
My current work-around is:
The text was updated successfully, but these errors were encountered: