Skip to content

Commit 85dd62c

Browse files
committed
update docstring for dummy_na parameter
1 parent 58de332 commit 85dd62c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pandas/core/reshape/encoding.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,9 @@ def get_dummies(
6868
If appending prefix, separator/delimiter to use. Or pass a
6969
list or dictionary as with `prefix`.
7070
dummy_na : bool, default False
71-
Add a column to indicate NaNs, if False NaNs are ignored.
71+
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.
7274
columns : list-like, default None
7375
Column names in the DataFrame to be encoded.
7476
If `columns` is None then all the columns with

0 commit comments

Comments
 (0)