Skip to content

Commit 1343011

Browse files
tdhockjreback
authored andcommitted
DOC: extract ValueError message
closes #12496
1 parent bc6ab05 commit 1343011

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/source/text.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ It raises ``ValueError`` if ``expand=False``.
256256
.. code-block:: python
257257
258258
>>> s.index.str.extract("(?P<letter>[a-zA-Z])([0-9]+)", expand=False)
259-
ValueError: This pattern contains no groups to capture.
259+
ValueError: only one regex group is supported with Index
260260
261261
The table below summarizes the behavior of ``extract(expand=False)``
262262
(input subject in first column, number of groups in regex in

0 commit comments

Comments
 (0)