Skip to content

[minor edit] edit definitions of some parameters with correct idiomatic English for better legibility #61366

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions pandas/core/reshape/encoding.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,13 +60,15 @@ def get_dummies(
data : array-like, Series, or DataFrame
Data of which to get dummy indicators.
prefix : str, list of str, or dict of str, default None
String to append DataFrame column names.
A string to be prepended to DataFrame column names.
Pass a list with length equal to the number of columns
when calling get_dummies on a DataFrame. Alternatively, `prefix`
can be a dictionary mapping column names to prefixes.
prefix_sep : str, default '_'
If appending prefix, separator/delimiter to use. Or pass a
list or dictionary as with `prefix`.
prefix_sep : str, list of str, or dict of str, default '_'
Should you choose to prepend DataFrame column names with a prefix, this
is the separator/delimiter to use between the two. Alternatively,
`prefix_sep` can be a list with length equal to the number of columns,
or a dictionary mapping column names to separators.
dummy_na : bool, default False
If True, a NaN indicator column will be added even if no NaN values are present.
If False, NA values are encoded as all zero.
Expand Down
Loading