Skip to content

Commit 5126dca

Browse files
saldanhadmroeschke
andauthored
Doc: Update docstring for dummy_na parameter (#60000)
* update docstring for dummy_na parameter * Update pandas/core/reshape/encoding.py Co-authored-by: Matthew Roeschke <10647082+mroeschke@users.noreply.github.com> --------- Co-authored-by: Matthew Roeschke <10647082+mroeschke@users.noreply.github.com>
1 parent 37c31af commit 5126dca

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pandas/core/reshape/encoding.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,8 @@ 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+
If False, NA values are encoded as all zero.
7273
columns : list-like, default None
7374
Column names in the DataFrame to be encoded.
7475
If `columns` is None then all the columns with

0 commit comments

Comments
 (0)