Skip to content

REF: implement _validate_comparison_value #33716

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

Merged
merged 3 commits into from
Apr 23, 2020

Conversation

jbrockmendel
Copy link
Member

Trying to match the patterns we use for all the other DTA/TDA/PA methods that have an other-like arg.

No logic should be changed here, just moved around.

@jbrockmendel jbrockmendel added the Refactor Internal refactoring of code label Apr 21, 2020
@@ -60,29 +60,24 @@ def _datetimelike_array_cmp(cls, op):
opname = f"__{op.__name__}__"
nat_result = opname == "__ne__"

@unpack_zerodim_and_defer(opname)
def wrapper(self, other):
class InvalidComparison(Exception):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this meant to be internal or external?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

internal

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

kk i would document that as such (followon ok)

@jreback jreback added this to the 1.1 milestone Apr 23, 2020
@@ -60,29 +60,24 @@ def _datetimelike_array_cmp(cls, op):
opname = f"__{op.__name__}__"
nat_result = opname == "__ne__"

@unpack_zerodim_and_defer(opname)
def wrapper(self, other):
class InvalidComparison(Exception):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

kk i would document that as such (followon ok)

@jreback jreback merged commit 1966a83 into pandas-dev:master Apr 23, 2020
@jbrockmendel jbrockmendel deleted the dtlike-cmp-helper branch April 23, 2020 18:03
rhshadrach pushed a commit to rhshadrach/pandas that referenced this pull request May 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Refactor Internal refactoring of code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants