Skip to content

DOC/DEPR: sep vs pat in series.str.partition #22676

Closed
@h-vetinari

Description

@h-vetinari

All the way back to the v0.16 docs, Series.str.partition (https://pandas.pydata.org/pandas-docs/stable/generated/pandas.Series.str.partition.html) has the signature Series.str.partition(pat=' ', expand=True), but the docs only talk about sep instead of pat.
3

I think the kwarg should be renamed to sep, which makes more sense for partitioning something than pat, which sounds like it's about a regex pattern.

Same thing applies to rpartition.

Metadata

Metadata

Assignees

No one assigned

    Labels

    DeprecateFunctionality to remove in pandasDocs

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions