Skip to content

ENH: Index StringMethods should return MultiIndex when result dimension is more than one #10008

Closed
@mortada

Description

@mortada

Currently the Index.str methods only support returning Index results. However, analogous to the expansion from Series.str.* -> DataFrame, we should be able to do Index.str.* -> MultiIndex in certain cases, as discussed in #9870 (comment)

Some of the string methods that can support this are: str.get_dummies, str.extract, str.split

Here are the related PRs: #9667, #9843, #9870, #9985

Metadata

Metadata

Assignees

No one assigned

    Labels

    API DesignMaster TrackerHigh level tracker for similar issuesStringsString extension data type and string data

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions