Skip to content
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

ENH: make _explode a method of the ExtensionArray interface #54833

Closed
2 of 3 tasks
douglasdavis opened this issue Aug 29, 2023 · 0 comments · Fixed by #54834
Closed
2 of 3 tasks

ENH: make _explode a method of the ExtensionArray interface #54833

douglasdavis opened this issue Aug 29, 2023 · 0 comments · Fixed by #54834
Labels
Enhancement ExtensionArray Extending pandas with custom dtypes or arrays. Reshaping Concat, Merge/Join, Stack/Unstack, Explode

Comments

@douglasdavis
Copy link
Contributor

douglasdavis commented Aug 29, 2023

Feature Type

  • Adding new functionality to pandas

  • Changing existing functionality in pandas

  • Removing existing functionality in pandas

Problem Description

In awkward-pandas we've had a user expect explode to work for them; see intake/akimbo#38

I see in #53602 Series.explode support for extension types has been added specifically to PyArrow list types. We'd like to be able to support explode with our awkward extension type. Therefore this feature request is to make an ExtensionArray._explode method, with a default that provides the same behavior already provided by Series.explode for non object dtypes (that is, a copy).

Feature Description

Issue will come with accompanying PR.

Alternative Solutions

None to my knowledge

Additional Context

No response

@douglasdavis douglasdavis added Enhancement Needs Triage Issue that has not been reviewed by a pandas team member labels Aug 29, 2023
@lithomas1 lithomas1 added Reshaping Concat, Merge/Join, Stack/Unstack, Explode ExtensionArray Extending pandas with custom dtypes or arrays. and removed Needs Triage Issue that has not been reviewed by a pandas team member labels Aug 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement ExtensionArray Extending pandas with custom dtypes or arrays. Reshaping Concat, Merge/Join, Stack/Unstack, Explode
Projects
None yet
2 participants