Skip to content

Commit da92411

Browse files
committed
DOC: remove as_indexer from text.rst example
1 parent 1793637 commit da92411

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

doc/source/text.rst

+3-3
Original file line numberDiff line numberDiff line change
@@ -146,8 +146,8 @@ following code will cause trouble because of the regular expression meaning of
146146
# We need to escape the special character (for >1 len patterns)
147147
dollars.str.replace(r'-\$', '-')
148148
149-
The ``replace`` method can also take a callable as replacement. It is called
150-
on every ``pat`` using :func:`re.sub`. The callable should expect one
149+
The ``replace`` method can also take a callable as replacement. It is called
150+
on every ``pat`` using :func:`re.sub`. The callable should expect one
151151
positional argument (a regex object) and return a string.
152152

153153
.. versionadded:: 0.20.0
@@ -380,7 +380,7 @@ or match a pattern:
380380

381381
.. ipython:: python
382382
383-
pd.Series(['1', '2', '3a', '3b', '03c']).str.match(pattern, as_indexer=True)
383+
pd.Series(['1', '2', '3a', '3b', '03c']).str.match(pattern)
384384
385385
The distinction between ``match`` and ``contains`` is strictness: ``match``
386386
relies on strict ``re.match``, while ``contains`` relies on ``re.search``.

0 commit comments

Comments
 (0)