Skip to content

REF: mix NDArrayBackedExtensionArray into PandasArray #33797

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 25, 2020

Conversation

jbrockmendel
Copy link
Member

Share several more methods in NDArrayBackedExtensionArray.

@jreback jreback added ExtensionArray Extending pandas with custom dtypes or arrays. Refactor Internal refactoring of code labels Apr 25, 2020
@jreback jreback added this to the 1.1 milestone Apr 25, 2020
@jreback jreback merged commit f5b6e99 into pandas-dev:master Apr 25, 2020
@jbrockmendel jbrockmendel deleted the ndarray-backed-2 branch April 26, 2020 00:08
# ------------------------------------------------------------------------

@property
def shape(self) -> Tuple[int, ...]:
Copy link
Member

Choose a reason for hiding this comment

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

these are always 1d? i.e. Tuple[int]

Copy link
Member Author

Choose a reason for hiding this comment

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

DTA/TDA/PA are sometimes 2D

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
ExtensionArray Extending pandas with custom dtypes or arrays. Refactor Internal refactoring of code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants