Skip to content

DEPR: disallow series[[slice(...)]] #31299

Closed
@jbrockmendel

Description

@jbrockmendel

One of the more convoluted parts of Series.__getitem__ is for handling single-entry lists that contain a slice, where we end up just returning self[key[0]]. We have two tests that hit this path, but it isn't clear to me why this should be supported.

Metadata

Metadata

Assignees

No one assigned

    Labels

    DeprecateFunctionality to remove in pandasIndexingRelated to indexing on series/frames, not to indexes themselves

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions