@@ -60,13 +60,15 @@ def get_dummies(
60
60
data : array-like, Series, or DataFrame
61
61
Data of which to get dummy indicators.
62
62
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.
64
64
Pass a list with length equal to the number of columns
65
65
when calling get_dummies on a DataFrame. Alternatively, `prefix`
66
66
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.
70
72
dummy_na : bool, default False
71
73
If True, a NaN indicator column will be added even if no NaN values are present.
72
74
If False, NA values are encoded as all zero.
0 commit comments