From fd8d86bc7ba67a40ba81955a40fd93dae897d307 Mon Sep 17 00:00:00 2001 From: Anh Le Date: Mon, 26 Feb 2018 14:32:49 -0500 Subject: [PATCH] DOC fix incorrect example in DataFrame.to_dict docstring. Close GH19868 --- pandas/core/frame.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pandas/core/frame.py b/pandas/core/frame.py index e4ef1b97882d9..c39664047a01b 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -957,8 +957,8 @@ def to_dict(self, orient='dict', into=dict): {'col1': [1, 2], 'col2': [0.5, 0.75]}, index=['a', 'b']) >>> df col1 col2 - a 1 0.1 - b 2 0.2 + a 1 0.50 + b 2 0.75 >>> df.to_dict() {'col1': {'a': 1, 'b': 2}, 'col2': {'a': 0.5, 'b': 0.75}}