From c4e93bd1ca4f32b50cdab69109213cb1cf6061d5 Mon Sep 17 00:00:00 2001 From: gfyoung Date: Tue, 12 Jul 2016 13:19:49 -0400 Subject: [PATCH] CLN: Removed outtype in DataFrame.to_dict (#13627) Follows up from #8486 in 0.15.0 by removing outtype in DataFrame.to_dict() --- doc/source/whatsnew/v0.19.0.txt | 13 +++++++++++++ pandas/core/frame.py | 1 - 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/doc/source/whatsnew/v0.19.0.txt b/doc/source/whatsnew/v0.19.0.txt index 46f8d58c8a50b..524e5a512f20a 100644 --- a/doc/source/whatsnew/v0.19.0.txt +++ b/doc/source/whatsnew/v0.19.0.txt @@ -436,6 +436,19 @@ Deprecations - 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`) - ``Timestamp.offset`` property (and named arg in the constructor), has been deprecated in favor of ``freq`` (:issue:`12160`) +<<<<<<< HEAD +======= + +.. _whatsnew_0190.prior_deprecations: + +Removal of prior version deprecations/changes +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +- ``DataFrame.to_csv()`` has dropped the ``engine`` parameter, as was deprecated in 0.17.1 (:issue:`11274`, :issue:`13419`) +- ``DataFrame.to_dict()`` has dropped the ``outtype`` parameter in favor of ``orient`` (:issue:`13627`, :issue:`8486`) + + +>>>>>>> 7c357d2... CLN: Removed outtype in DataFrame.to_dict (#13627) .. _whatsnew_0190.performance: Performance Improvements diff --git a/pandas/core/frame.py b/pandas/core/frame.py index b4509c999a5da..e01fc6dca6be3 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -818,7 +818,6 @@ def from_dict(cls, data, orient='columns', dtype=None): return cls(data, index=index, columns=columns, dtype=dtype) - @deprecate_kwarg(old_arg_name='outtype', new_arg_name='orient') def to_dict(self, orient='dict'): """Convert DataFrame to dictionary.