Skip to content

Commit

Permalink
DOC: remove as_indexer from text.rst example
Browse files Browse the repository at this point in the history
  • Loading branch information
jreback authored and mattip committed Mar 30, 2017
1 parent 6cebfa6 commit 6ffbce7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions doc/source/text.rst
Original file line number Diff line number Diff line change
Expand Up @@ -146,8 +146,8 @@ following code will cause trouble because of the regular expression meaning of
# We need to escape the special character (for >1 len patterns)
dollars.str.replace(r'-\$', '-')
The ``replace`` method can also take a callable as replacement. It is called
on every ``pat`` using :func:`re.sub`. The callable should expect one
The ``replace`` method can also take a callable as replacement. It is called
on every ``pat`` using :func:`re.sub`. The callable should expect one
positional argument (a regex object) and return a string.

.. versionadded:: 0.20.0
Expand Down Expand Up @@ -380,7 +380,7 @@ or match a pattern:

.. ipython:: python
pd.Series(['1', '2', '3a', '3b', '03c']).str.match(pattern, as_indexer=True)
pd.Series(['1', '2', '3a', '3b', '03c']).str.match(pattern)
The distinction between ``match`` and ``contains`` is strictness: ``match``
relies on strict ``re.match``, while ``contains`` relies on ``re.search``.
Expand Down

0 comments on commit 6ffbce7

Please sign in to comment.