We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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.
Series.str.partition
Series.str.partition(pat=' ', expand=True)
sep
pat
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.
rpartition
The text was updated successfully, but these errors were encountered:
It is standard method https://docs.python.org/3/library/stdtypes.html#str.partition The parameter is named sep there, but in Pandas implementation it is pat https://github.com/pandas-dev/pandas/blob/v0.23.4/pandas/core/strings.py#L2382-L2391
I agree that parameter should be renamed, can I take this one?
Sorry, something went wrong.
@ArtyomKaltovich
Sorry for the late reply, no reason you shouldn't tackle it!
Successfully merging a pull request may close this issue.
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 signatureSeries.str.partition(pat=' ', expand=True)
, but the docs only talk aboutsep
instead ofpat
.I think the kwarg should be renamed to
sep
, which makes more sense for partitioning something thanpat
, which sounds like it's about a regex pattern.Same thing applies to
rpartition
.The text was updated successfully, but these errors were encountered: