Skip to content

ENH: Add Series.split and DataFrame.split #62719

@rhshadrach

Description

@rhshadrach

Ref: #57351

Splitting data into chunks is a common operation. Previously, users were relying on np.split which no longer works in pandas 3.0. It seems to me this is a common enough operation that it should have a method in the pandas API.

Proposal: Add Series.split and DataFrame.split with the same signature as np.split (except no axis argument for Series). It should have the same behavior as np.split except that it produces the corresponding pandas objects.

Metadata

Metadata

Assignees

No one assigned

    Labels

    EnhancementNeeds DiscussionRequires discussion from core team before further actionReshapingConcat, 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