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
Copy file name to clipboardExpand all lines: doc/source/whatsnew/v0.18.0.txt
+12-9
Original file line number
Diff line number
Diff line change
@@ -145,15 +145,15 @@ Changes to str.extract
145
145
The :ref:`.str.extract <text.extract>` method takes a regular
146
146
expression with capture groups, finds the first match in each subject
147
147
string, and returns the contents of the capture groups
148
-
(:issue:`11386`). In v0.18.0, the ``expand`` argument was added to
149
-
``extract``. When ``expand=False`` it returns a ``Series``, ``Index``,
150
-
or ``DataFrame``, depending on the subject and regular expression
151
-
pattern (same behavior as pre-0.18.0). When ``expand=True`` it always
152
-
returns a ``DataFrame``, which is more consistent and less confusing
153
-
from the perspective of a user. Currently the default is
154
-
``expand=None`` which gives a ``FutureWarning`` and uses
155
-
``expand=False``. To avoid this warning, please explicitly specify
156
-
``expand``.
148
+
(:issue:`11386`).
149
+
150
+
In v0.18.0, the ``expand`` argument was added to
151
+
``extract``.
152
+
153
+
- ``expand=False``: it returns a ``Series``, ``Index``, or ``DataFrame``, depending on the subject and regular expression pattern (same behavior as pre-0.18.0).
154
+
- ``expand=True``: it always returns a ``DataFrame``, which is more consistent and less confusing from the perspective of a user.
155
+
156
+
Currently the default is ``expand=None`` which gives a ``FutureWarning`` and uses ``expand=False``. To avoid this warning, please explicitly specify ``expand``.
157
157
158
158
.. ipython:: python
159
159
@@ -205,6 +205,9 @@ In summary, ``extract(expand=True)`` always returns a ``DataFrame``
205
205
with a row for every subject string, and a column for every capture
206
206
group.
207
207
208
+
Addition of str.extractall
209
+
^^^^^^^^^^^^^^^^^^^^^^^^^^
210
+
208
211
.. _whatsnew_0180.enhancements.extractall:
209
212
210
213
The :ref:`.str.extractall <text.extractall>` method was added
0 commit comments