Skip to content

REF: share methods between ExtensionBlock, NDArrayBackedExtensionBlock #40787

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 7, 2021

Conversation

jbrockmendel
Copy link
Member

  • closes #xxxx
  • tests added / passed
  • Ensure all linting tests pass, see here for how to run them
  • whatsnew entry

@jbrockmendel
Copy link
Member Author

@jreback adds test discussed in #40763

@jbrockmendel jbrockmendel added Internals Related to non-user accessible pandas implementation Refactor Internal refactoring of code labels Apr 5, 2021
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.

great (minor question)

def array_values(self) -> ExtensionArray:
return self.values

def get_values(self, dtype: DtypeObj | None = None) -> np.ndarray:
Copy link
Contributor

Choose a reason for hiding this comment

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

do we not use Optional anymore?

Copy link
Member Author

Choose a reason for hiding this comment

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

i think a code check was added in the last few days, not sure of the specifics

@jreback jreback merged commit 5d1f13e into pandas-dev:master Apr 7, 2021
@jbrockmendel jbrockmendel deleted the ref-ea-block branch April 7, 2021 21:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Internals Related to non-user accessible pandas implementation Refactor Internal refactoring of code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants