diff --git a/doc/source/text.rst b/doc/source/text.rst index a0cc32ecea531..53567ea25aeac 100644 --- a/doc/source/text.rst +++ b/doc/source/text.rst @@ -381,6 +381,7 @@ Method Summary :meth:`~Series.str.rsplit`,Split strings on delimiter working from the end of the string :meth:`~Series.str.get`,Index into each element (retrieve i-th element) :meth:`~Series.str.join`,Join strings in each element of the Series with passed separator + :meth:`~Series.str.get_dummies`,Split strings on delimiter, returning DataFrame of dummy variables :meth:`~Series.str.contains`,Return boolean array if each string contains pattern/regex :meth:`~Series.str.replace`,Replace occurrences of pattern/regex with some other string :meth:`~Series.str.repeat`,Duplicate values (``s.str.repeat(3)`` equivalent to ``x * 3``) diff --git a/pandas/core/reshape.py b/pandas/core/reshape.py index 0643250484839..5ee3e4f08d285 100644 --- a/pandas/core/reshape.py +++ b/pandas/core/reshape.py @@ -1035,8 +1035,10 @@ def get_dummies(data, prefix=None, prefix_sep='_', dummy_na=False, 2 0 1 3 0 0 4 0 0 - See also ``Series.str.get_dummies``. + See Also + -------- + Series.str.get_dummies """ from pandas.tools.merge import concat from itertools import cycle