Skip to content

REF: deduplicate nullable arrays _cmp_method #44548

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 2 commits into from
Nov 21, 2021

Conversation

mzeitlin11
Copy link
Member

xref #44533 (comment), helps on a bullet in #38110

@mzeitlin11 mzeitlin11 added Refactor Internal refactoring of code Numeric Operations Arithmetic, Comparison, and Logical operations NA - MaskedArrays Related to pd.NA and nullable extension arrays labels Nov 21, 2021
Copy link
Member

@jorisvandenbossche jorisvandenbossche left a comment

Choose a reason for hiding this comment

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

Nice, thanks for looking into this!

)

if isinstance(other, (IntegerArray, FloatingArray)):
return NotImplemented
Copy link
Member

Choose a reason for hiding this comment

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

Comparing the implementations, I think this is the only thing that's actually different / would change for BooleanArray. But since the implementations are otherwise equal, I suppose that doesn't matter?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah that was the same thought I had when looking at these

@jreback jreback added this to the 1.4 milestone Nov 21, 2021
@jreback jreback merged commit a568bdc into pandas-dev:master Nov 21, 2021
@jreback
Copy link
Contributor

jreback commented Nov 21, 2021

thanks @mzeitlin11 keep em coming!

@mzeitlin11 mzeitlin11 deleted the ref_share_cmp_method branch November 21, 2021 23:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
NA - MaskedArrays Related to pd.NA and nullable extension arrays Numeric Operations Arithmetic, Comparison, and Logical operations Refactor Internal refactoring of code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants