We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 58de332 commit 85dd62cCopy full SHA for 85dd62c
pandas/core/reshape/encoding.py
@@ -68,7 +68,9 @@ def get_dummies(
68
If appending prefix, separator/delimiter to use. Or pass a
69
list or dictionary as with `prefix`.
70
dummy_na : bool, default False
71
- Add a column to indicate NaNs, if False NaNs are ignored.
+ If True, a NaN indicator column will be added even if no NaN values are present.
72
+ This behavior is intentional and by design. If False, NA values are encoded
73
+ as all zero.
74
columns : list-like, default None
75
Column names in the DataFrame to be encoded.
76
If `columns` is None then all the columns with
0 commit comments