8000 API: Standardize ExtensionDtype subtype name · Issue #22224 · pandas-dev/pandas · GitHub
[go: up one dir, main page]

Skip to content
API: Standardize ExtensionDtype subtype name #22224
@TomAugspurger

Description

@TomAugspurger

We have a few extension arrays that build off one or more ndarrays. You'll often want to get the underlying NumPy dtype for that array.

  • IntegerArray uses .type
  • IntervalArray uses .subtype

IntervalArray can't use .type, since that has to be Interval. So IntegerArray will need to alias subtype to type.

Are we happy with the name subtype?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0