Skip to content

Commit c4e93bd

Browse files
gfyoungnateGeorge
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 05a2d04 commit c4e93bd

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

doc/source/whatsnew/v0.19.0.txt

+13
Original file line numberDiff line numberDiff line change
@@ -436,6 +436,19 @@ Deprecations
436436
- top-level ``pd.ordered_merge()`` has been renamed to ``pd.merge_ordered()`` and the original name will be removed in a future version (:issue:`13358`)
437437
- ``Timestamp.offset`` property (and named arg in the constructor), has been deprecated in favor of ``freq`` (:issue:`12160`)
438438

439+
<<<<<<< HEAD
440+
=======
441+
442+
.. _whatsnew_0190.prior_deprecations:
443+
444+
Removal of prior version deprecations/changes
445+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
446+
447+
- ``DataFrame.to_csv()`` has dropped the ``engine`` parameter, as was deprecated in 0.17.1 (:issue:`11274`, :issue:`13419`)
448+
- ``DataFrame.to_dict()`` has dropped the ``outtype`` parameter in favor of ``orient`` (:issue:`13627`, :issue:`8486`)
449+
450+
451+
>>>>>>> 7c357d2... CLN: Removed outtype in DataFrame.to_dict (#13627)
439452
.. _whatsnew_0190.performance:
440453

441454
Performance Improvements

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)