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
closes#10008
Author: sinhrks <[email protected]>
Closes#13156 from sinhrks/str_extractall and squashes the following commits:
ed854ef [sinhrks] ENH/BUG: str.extractall doesn't support index
Copy file name to clipboardExpand all lines: doc/source/whatsnew/v0.18.2.txt
+6
Original file line number
Diff line number
Diff line change
@@ -31,7 +31,12 @@ Other enhancements
31
31
32
32
- The ``.tz_localize()`` method of ``DatetimeIndex`` and ``Timestamp`` has gained the ``errors`` keyword, so you can potentially coerce nonexistent timestamps to ``NaT``. The default behaviour remains to raising a ``NonExistentTimeError`` (:issue:`13057`)
33
33
34
+
- ``Index`` now supports ``.str.extractall()`` which returns ``DataFrame``, see :ref:`Extract all matches in each subject (extractall) <text.extractall>` (:issue:`10008`, :issue:`13156`)
34
35
36
+
.. ipython:: python
37
+
38
+
idx = pd.Index(["a1a2", "b1", "c1"])
39
+
idx.str.extractall("[ab](?P<digit>\d)")
35
40
36
41
.. _whatsnew_0182.api:
37
42
@@ -120,6 +125,7 @@ Bug Fixes
120
125
121
126
122
127
128
+
- Bug in ``Series.str.extractall()`` with ``str`` index raises ``ValueError`` (:issue:`13156`)
123
129
124
130
125
131
- Bug in ``PeriodIndex`` and ``Period`` subtraction raises ``AttributeError`` (:issue:`13071`)
0 commit comments