Skip to content

CLN: match standardized dispatch logic in IntegerArray #27830

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 1 commit into from
Aug 13, 2019

Conversation

jbrockmendel
Copy link
Member

Actual logic changes:

  • return NotImplemented when operating with DataFrame (instead of raising NotImplementError)
  • raise ValueError when operating with mismatched-length listlike

Everything else is just rearranging to use patterns that are more standard around the codebase, leading up to #23853

@gfyoung gfyoung added the Clean label Aug 9, 2019
Copy link
Contributor

@jreback jreback left a comment

Choose a reason for hiding this comment

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

comment can be address later

raise NotImplementedError(
"can only perform ops with 1-d structures"
)
if len(self) != len(other):
Copy link
Contributor

Choose a reason for hiding this comment

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

can you make these elif (future PR ok)

@jreback jreback added this to the 1.0 milestone Aug 13, 2019
@jreback jreback merged commit 6a927b0 into pandas-dev:master Aug 13, 2019
@jbrockmendel jbrockmendel deleted the iops branch August 13, 2019 13:59
quintusdias pushed a commit to quintusdias/pandas_dev that referenced this pull request Aug 16, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants