Skip to content

Commit 74dbfd0

Browse files
Anh Lejreback
Anh Le
authored andcommitted
DOC fix incorrect example in DataFrame.to_dict docstring. Close GH19868 (pandas-dev#19915)
1 parent ceb9031 commit 74dbfd0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pandas/core/frame.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -958,8 +958,8 @@ def to_dict(self, orient='dict', into=dict):
958958
{'col1': [1, 2], 'col2': [0.5, 0.75]}, index=['a', 'b'])
959959
>>> df
960960
col1 col2
961-
a 1 0.1
962-
b 2 0.2
961+
a 1 0.50
962+
b 2 0.75
963963
>>> df.to_dict()
964964
{'col1': {'a': 1, 'b': 2}, 'col2': {'a': 0.5, 'b': 0.75}}
965965

0 commit comments

Comments
 (0)