Skip to content

Commit 4cd46e1

Browse files
committed
docs: add hyperlinks to str.get_dummies
The description used in the summary table is the first sentence of str_get_dummies()'s docstring, edited to match the style of other summaries.
1 parent 0813a33 commit 4cd46e1

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

doc/source/text.rst

+1
Original file line numberDiff line numberDiff line change
@@ -381,6 +381,7 @@ Method Summary
381381
:meth:`~Series.str.rsplit`,Split strings on delimiter working from the end of the string
382382
:meth:`~Series.str.get`,Index into each element (retrieve i-th element)
383383
:meth:`~Series.str.join`,Join strings in each element of the Series with passed separator
384+
:meth:`~Series.str.get_dummies`,Split strings on delimiter, returning DataFrame of dummy variables
384385
:meth:`~Series.str.contains`,Return boolean array if each string contains pattern/regex
385386
:meth:`~Series.str.replace`,Replace occurrences of pattern/regex with some other string
386387
:meth:`~Series.str.repeat`,Duplicate values (``s.str.repeat(3)`` equivalent to ``x * 3``)

pandas/core/reshape.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -1035,8 +1035,10 @@ def get_dummies(data, prefix=None, prefix_sep='_', dummy_na=False,
10351035
2 0 1
10361036
3 0 0
10371037
4 0 0
1038-
See also ``Series.str.get_dummies``.
10391038
1039+
See Also
1040+
--------
1041+
Series.str.get_dummies
10401042
"""
10411043
from pandas.tools.merge import concat
10421044
from itertools import cycle

0 commit comments

Comments
 (0)