Skip to content

API: change ExtensionArray.astype to always return an ExtensionArray #43699

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

Closed

Conversation

jorisvandenbossche
Copy link
Member

Closes #24877

This is a work-in-progress to see if it's realistic to require ExtensionArray.astype to always return an ExtensionArray (in practice this means returning a PandasArray if now a numpy array would be returned).

Further we will also need to see how this impacts external EAs, and how this change can be managed.

(datetimelike and categorical arrays were not yet updated)

@github-actions
Copy link
Contributor

This pull request is stale because it has been open for thirty days with no activity. Please update or respond to this comment if you're still interested in working on this.

@jbrockmendel
Copy link
Member

#24877 (comment)

@jbrockmendel
Copy link
Member

@jorisvandenbossche planning to do anything else here?

@simonjayhawkins
Copy link
Member

Thanks for the pull request, but it appears to have gone stale. If interested in continuing, please merge in the main branch, address any review comments and/or failing tests, and we can reopen.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API Design ExtensionArray Extending pandas with custom dtypes or arrays.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

API: ExtensionArray.astype to only return extension arrays ?
3 participants