Skip to content

REF: rename PandasArray->NumpyExtensionArray #54101

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 4 commits into from
Jul 18, 2023

Conversation

jbrockmendel
Copy link
Member

I'm open to suggestions on names.

return type(self)(arr)

# ------------------------------------------------------------------------
# Data

@property
def dtype(self) -> PandasDtype:
def dtype(self) -> NumpyEADtype:
Copy link
Member

Choose a reason for hiding this comment

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

Would be good to note that the returned dtype has changed too

Copy link
Member Author

Choose a reason for hiding this comment

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

sure. thoughts on the name NumpyEADtype? i was torn between wanting parity with ArrowDtype vs confusion with np.dtype

Copy link
Member

Choose a reason for hiding this comment

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

IMO NumpyEADtype sounds good

@mroeschke mroeschke added the ExtensionArray Extending pandas with custom dtypes or arrays. label Jul 13, 2023
@mroeschke mroeschke added this to the 2.1 milestone Jul 18, 2023
@mroeschke mroeschke merged commit 3713834 into pandas-dev:main Jul 18, 2023
@mroeschke
Copy link
Member

Thanks @jbrockmendel

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.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

API: rename PandasArray -> NumpyExtensionArray
2 participants