Skip to content

Commit

Permalink
DOC: small fixes in text.rst
Browse files Browse the repository at this point in the history
  • Loading branch information
jreback authored and mattip committed Mar 30, 2017
1 parent 6ffbce7 commit c665cf5
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions doc/source/text.rst
Original file line number Diff line number Diff line change
Expand Up @@ -372,12 +372,11 @@ You can check whether elements contain a pattern:

.. ipython:: python
pattern = r'[a-z][0-9]'
pattern = r'[0-9][a-z]'
pd.Series(['1', '2', '3a', '3b', '03c']).str.contains(pattern)
or match a pattern:


.. ipython:: python
pd.Series(['1', '2', '3a', '3b', '03c']).str.match(pattern)
Expand All @@ -386,7 +385,7 @@ The distinction between ``match`` and ``contains`` is strictness: ``match``
relies on strict ``re.match``, while ``contains`` relies on ``re.search``.

Methods like ``match``, ``contains``, ``startswith``, and ``endswith`` take
an extra ``na`` argument so missing values can be considered True or False:
an extra ``na`` argument so missing values can be considered True or False:

.. ipython:: python
Expand Down

0 comments on commit c665cf5

Please sign in to comment.