Skip to content

Commit 7c357d2

Browse files
gfyoungjorisvandenbossche
authored andcommitted
CLN: Removed outtype in DataFrame.to_dict (pandas-dev#13627)
Follows up from pandas-dev#8486 in 0.15.0 by removing outtype in DataFrame.to_dict()
1 parent dbd5330 commit 7c357d2

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

doc/source/whatsnew/v0.19.0.txt

+1
Original file line numberDiff line numberDiff line change
@@ -443,6 +443,7 @@ Removal of prior version deprecations/changes
443443
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
444444

445445
- ``DataFrame.to_csv()`` has dropped the ``engine`` parameter, as was deprecated in 0.17.1 (:issue:`11274`, :issue:`13419`)
446+
- ``DataFrame.to_dict()`` has dropped the ``outtype`` parameter in favor of ``orient`` (:issue:`13627`, :issue:`8486`)
446447

447448

448449
.. _whatsnew_0190.performance:

pandas/core/frame.py

-1
Original file line numberDiff line numberDiff line change
@@ -818,7 +818,6 @@ def from_dict(cls, data, orient='columns', dtype=None):
818818

819819
return cls(data, index=index, columns=columns, dtype=dtype)
820820

821-
@deprecate_kwarg(old_arg_name='outtype', new_arg_name='orient')
822821
def to_dict(self, orient='dict'):
823822
"""Convert DataFrame to dictionary.
824823

0 commit comments

Comments
 (0)