Skip to content

Commit a3f48f2

Browse files
committed
DOC: improve get_dummies dtype documentation
1 parent 7650beb commit a3f48f2

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

doc/source/whatsnew/v0.22.0.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ Sparse
143143
Reshaping
144144
^^^^^^^^^
145145

146-
- :func:`get_dummies` now supports ``dtype`` argument
146+
-
147147
-
148148
-
149149

pandas/core/reshape/reshape.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -725,10 +725,13 @@ def get_dummies(data, prefix=None, prefix_sep='_', dummy_na=False,
725725
drop_first : bool, default False
726726
Whether to get k-1 dummies out of k categorical levels by removing the
727727
first level.
728+
729+
.. versionadded:: 0.18.0
730+
728731
dtype : dtype, default np.uint8
729732
Data type to force on a new columns. Only a single dtype is allowed.
730733
731-
.. versionadded:: 0.18.0
734+
.. versionadded:: 0.22.0
732735
733736
Returns
734737
-------

0 commit comments

Comments
 (0)