Skip to content

Commit

Permalink
Fix .str.replace_with_backrefs docs examples (#6855)
Browse files Browse the repository at this point in the history
Fixes: #6832
  • Loading branch information
galipremsagar committed Nov 29, 2020
1 parent 45bd967 commit f0f53c7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,7 @@
- PR #6826 Fix resource management in Java ColumnBuilder
- PR #6830 Fix categorical scalar insertion
- PR #6854 Fix the parameter order of writeParquetBufferBegin
- PR #6855 Fix `.str.replace_with_backrefs` docs examples


# cuDF 0.16.0 (21 Oct 2020)
Expand Down
2 changes: 1 addition & 1 deletion python/cudf/cudf/core/column/string.py
Original file line number Diff line number Diff line change
Expand Up @@ -783,7 +783,7 @@ def replace_with_backrefs(self, pat, repl, **kwargs):
--------
>>> import cudf
>>> s = cudf.Series(["A543","Z756"])
>>> s.str.replace_with_backrefs('(\\d)(\\d)', 'V\\2\\1')
>>> s.str.replace_with_backrefs('(\\\\d)(\\\\d)', 'V\\\\2\\\\1')
0 AV453
1 ZV576
dtype: object
Expand Down

0 comments on commit f0f53c7

Please sign in to comment.