Skip to content

ENH: Select numeric ExtensionDtypes with DataFrame.select_dtypes #35340

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
andrewgsavage opened this issue Jul 19, 2020 · 0 comments · Fixed by #38246
Closed

ENH: Select numeric ExtensionDtypes with DataFrame.select_dtypes #35340

andrewgsavage opened this issue Jul 19, 2020 · 0 comments · Fixed by #38246
Labels
Dtype Conversions Unexpected or buggy dtype conversions ExtensionArray Extending pandas with custom dtypes or arrays.
Milestone

Comments

@andrewgsavage
Copy link

Is your feature request related to a problem?

I would like to plot ExtensionArrays. DataFrame.select_dtypes(np.number) is called when plotting, which filters out ExtensionArrays.

Describe the solution you'd like

DataFrame.select_dtypes(np.number) should select columns where ExtensionDtype._is_numeric is True, suggested here #26173 (comment)

API breaking implications

Not considered.

Describe alternatives you've considered

Not considered.

Additional context

N/A

@andrewgsavage andrewgsavage added Enhancement Needs Triage Issue that has not been reviewed by a pandas team member labels Jul 19, 2020
@simonjayhawkins simonjayhawkins added Dtype Conversions Unexpected or buggy dtype conversions ExtensionArray Extending pandas with custom dtypes or arrays. and removed Enhancement Needs Triage Issue that has not been reviewed by a pandas team member labels Jul 19, 2020
@jreback jreback added this to the 1.3 milestone Dec 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Dtype Conversions Unexpected or buggy dtype conversions ExtensionArray Extending pandas with custom dtypes or arrays.
Projects
None yet
3 participants