8000 [minor edit] edit definitions of some parameters with correct idiomat… · pandas-dev/pandas@d692ddd · GitHub
[go: up one dir, main page]

Skip to content

Commit d692ddd

Browse files
kirisakowmroeschke
andauthored
[minor edit] edit definitions of some parameters with correct idiomatic English for better legibility (#61366)
* edit definitions of some parameters with correct idiomatic English for better legibility (e.g. you don't *append* a prefix, you can only *prepend* it) * strip trailing space, as suggested by @mroeschke Co-authored-by: Matthew Roeschke <10647082+mroeschke@users.noreply.github.com> --------- Co-authored-by: Matthew Roeschke <10647082+mroeschke@users.noreply.github.com>
1 parent 44c5613 commit d692ddd

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

pandas/core/reshape/encoding.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,13 +60,15 @@ def get_dummies(
6060
data : array-like, Series, or DataFrame
6161
Data of which to get dummy indicators.
6262
prefix : str, list of str, or dict of str, default None
63-
String to append DataFrame column names.
63+
A string to be prepended to DataFrame column names.
6464
Pass a list with length equal to the number of columns
6565
when calling get_dummies on a DataFrame. Alternatively, `prefix`
6666
can be a dictionary mapping column names to prefixes.
67-
prefix_sep : str, default '_'
68-
If appending prefix, separator/delimiter to use. Or pass a
69-
list or dictionary as with `prefix`.
67+
prefix_sep : str, list of str, or dict of str, default '_'
68+
Should you choose to prepend DataFrame column names with a prefix, this
69+
is the separator/delimiter to use between the two. Alternatively,
70+
`prefix_sep` can be a list with length equal to the number of columns,
71+
or a dictionary mapping column names to separators.
7072
dummy_na : bool, default False
7173
If True, a NaN indicator column will be added even if no NaN values are present.
7274
If False, NA values are encoded as all zero.

0 commit comments

Comments
 (0)
0