Skip to content

FEAT: Update fork #2

New issue

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

Merged
merged 1 commit into from
May 3, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion pandas/core/strings.py
Original file line number Diff line number Diff line change
Expand Up @@ -2255,7 +2255,7 @@ def cat(self, others=None, sep=None, na_rep=None, join=None):
name=self._orig.name)
return result

_shared_docs['str_split'] = ("""
_shared_docs['str_split'] = (r"""
Split strings around given separator/delimiter.

Splits the string in the Series/Index from the %(side)s,
Expand Down Expand Up @@ -2370,6 +2370,15 @@ def cat(self, others=None, sep=None, na_rep=None, join=None):
0 this is a regular sentence None
1 https://docs.python.org/3/tutorial index.html
2 NaN NaN

Remember to escape special characters when explicitly using regular
expressions.

>>> s = pd.Series(["1+1=2"])

>>> s.str.split(r"\+|=", expand=True)
0 1 2
0 1 1 2
""")

@Appender(_shared_docs['str_split'] % {
Expand Down