Skip to content

Commit

Permalink
Doc: Update docstring for dummy_na parameter (#60000)
Browse files Browse the repository at this point in the history
* 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>
  • Loading branch information
saldanhad and mroeschke authored Oct 8, 2024
1 parent 37c31af commit 5126dca
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pandas/core/reshape/encoding.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,8 @@ def get_dummies(
If appending prefix, separator/delimiter to use. Or pass a
list or dictionary as with `prefix`.
dummy_na : bool, default False
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.
If False, NA values are encoded as all zero.
columns : list-like, default None
Column names in the DataFrame to be encoded.
If `columns` is None then all the columns with
Expand Down

0 comments on commit 5126dca

Please sign in to comment.