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.
dummy_na
1 parent 37c31af commit 5126dcaCopy full SHA for 5126dca
pandas/core/reshape/encoding.py
@@ -68,7 +68,8 @@ 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
+ If False, NA values are encoded as all zero.
73
columns : list-like, default None
74
Column names in the DataFrame to be encoded.
75
If `columns` is None then all the columns with
0 commit comments