Skip to content

API: ExtensionArray._concat_same_type doesn't define axis #47514

Open
@mroeschke

Description

@mroeschke

Mentioned in #46008

The signature for ExtensionArray._concat_same_type is defined as def _concat_same_type(cls, sequence).

Some internal extension arrays define the method with an axis argument e.g. BaseMaskedArray._concat_same_type(cls, sequence, axis)

Some internal routines expect _concat_same_type to accept axis e.g _concat_datetime (hit by checking kind on the dtype).

I imagine either:

  1. Internally, remove axis for internally defined _concat_same_type(cls, sequence, axis) (imagine not feasible)
  2. Add axis to the ExtensionArray._concat_same_type signature.

Metadata

Metadata

Assignees

No one assigned

    Labels

    API DesignExtensionArrayExtending pandas with custom dtypes or arrays.PDEP missing valuesIssues that would be addressed by the Ice Cream Agreement from the Aug 2023 sprintReshapingConcat, Merge/Join, Stack/Unstack, Explode

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions