-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
DOC: Changed string to give correct output (#26865) #26886
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
Conversation
Kischy
commented
Jun 16, 2019
- closes possible error in documentation #26865
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks. Minor comment. Ping on green.
@@ -606,7 +606,7 @@ list of regex -> list of regex: | |||
|
|||
.. ipython:: python | |||
|
|||
df.replace([r'\.', r'(a)'], ['dot', '\1stuff'], regex=True) | |||
df.replace([r'\.', r'(a)'], ['dot', 'stuff'], regex=True) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The correct string is a raw string r'\1stuff'
to demonstrate replacement.
Codecov Report
@@ Coverage Diff @@
## master #26886 +/- ##
=========================================
Coverage ? 91.86%
=========================================
Files ? 180
Lines ? 50710
Branches ? 0
=========================================
Hits ? 46583
Misses ? 4127
Partials ? 0
Continue to review full report at Codecov.
|
1 similar comment
Codecov Report
@@ Coverage Diff @@
## master #26886 +/- ##
=========================================
Coverage ? 91.86%
=========================================
Files ? 180
Lines ? 50710
Branches ? 0
=========================================
Hits ? 46583
Misses ? 4127
Partials ? 0
Continue to review full report at Codecov.
|
Closing in favor of #26891. |