Skip to content

ENH: add StringMethods (e.g. .str) to Index #9068

Closed
@jreback

Description

@jreback

currently

Series.str.strip() works
but

Index(Series(Index.values).str.strip()) would be necessary for an index

should be very straightforward to move the .str accessor to IndexOpsMixin (from Series)
to support this (would need to prevent Index sub-classes from using it though as they don't support string ops.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions