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
Regression in offsets caused offsets to be no longer hashable #37288
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
also can you run an asv to make sure this doesn't change perf
great code change looks good. if you'd report on the asv's we can merge. |
Thanks, benchmark has just finished. No changes
|
pandas/_libs/tslibs/offsets.pyx
Outdated
@@ -752,6 +752,9 @@ cdef class Tick(SingleConstructorOffset): | |||
"Tick offset with `normalize=True` are not allowed." | |||
) | |||
|
|||
def __hash__(self) -> int: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jbrockmendel ok here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yep, LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for working on this!
Added a few comments
Co-authored-by: Joris Van den Bossche <jorisvandenbossche@gmail.com>
thanks @phofl nice |
… be no longer hashable
…ger hashable (#37326) Co-authored-by: patrick <61934744+phofl@users.noreply.github.com>
black pandas
git diff upstream/master -u -- "*.py" | flake8 --diff