You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Series.str.replace now accepts a compiled regular expression for `pat`.
- Signature for .str.replace changed, but remains backwards compatible.
See #15446
Copy file name to clipboardExpand all lines: doc/source/whatsnew/v0.20.0.txt
+2-1
Original file line number
Diff line number
Diff line change
@@ -28,7 +28,8 @@ New features
28
28
~~~~~~~~~~~~
29
29
30
30
- Integration with the ``feather-format``, including a new top-level ``pd.read_feather()`` and ``DataFrame.to_feather()`` method, see :ref:`here <io.feather>`.
31
-
- ``.str.replace`` now accepts a callable, as replacement, which is passed to ``re.sub`` (:issue:`15055`)
31
+
- ``Series.str.replace()`` now accepts a callable, as replacement, which is passed to ``re.sub`` (:issue:`15055`)
32
+
- ``Series.str.replace()`` now accepts a compiled regular expression as a pattern (:issue:`15446`)
0 commit comments