Skip to content
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion pandas/core/reshape/encoding.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,9 @@ 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.
This behavior is intentional and by design. 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