Skip to content

Commit 47f0222

Browse files
committed
DOC: cleanup str changes in whatsnew
1 parent 67730dd commit 47f0222

File tree

1 file changed

+12
-9
lines changed

1 file changed

+12
-9
lines changed

doc/source/whatsnew/v0.18.0.txt

+12-9
Original file line numberDiff line numberDiff line change
@@ -145,15 +145,15 @@ Changes to str.extract
145145
The :ref:`.str.extract <text.extract>` method takes a regular
146146
expression with capture groups, finds the first match in each subject
147147
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``.
157157

158158
.. ipython:: python
159159

@@ -205,6 +205,9 @@ In summary, ``extract(expand=True)`` always returns a ``DataFrame``
205205
with a row for every subject string, and a column for every capture
206206
group.
207207

208+
Addition of str.extractall
209+
^^^^^^^^^^^^^^^^^^^^^^^^^^
210+
208211
.. _whatsnew_0180.enhancements.extractall:
209212

210213
The :ref:`.str.extractall <text.extractall>` method was added

0 commit comments

Comments
 (0)