@@ -1543,7 +1543,7 @@ def from_dict(
1543
1543
If 'tight', assume a dict with keys ['index', 'columns', 'data',
1544
1544
'index_names', 'column_names'].
1545
1545
1546
- .. versionadded:: 1.2 .0
1546
+ .. versionadded:: 1.4 .0
1547
1547
'tight' as an allowed value for the ``orient`` argument
1548
1548
1549
1549
dtype : dtype, default None
@@ -1629,6 +1629,7 @@ def from_dict(
1629
1629
realdata = data ["data" ]
1630
1630
1631
1631
def create_index (indexlist , namelist ):
1632
+ index : Index
1632
1633
if len (namelist ) > 1 :
1633
1634
index = MultiIndex .from_tuples (indexlist , names = namelist )
1634
1635
else :
@@ -1737,7 +1738,7 @@ def to_dict(self, orient: str = "dict", into=dict):
1737
1738
Abbreviations are allowed. `s` indicates `series` and `sp`
1738
1739
indicates `split`.
1739
1740
1740
- .. versionadded:: 1.2 .0
1741
+ .. versionadded:: 1.4 .0
1741
1742
'tight' as an allowed value for the ``orient`` argument
1742
1743
1743
1744
into : class, default dict
@@ -1877,7 +1878,7 @@ def to_dict(self, orient: str = "dict", into=dict):
1877
1878
(
1878
1879
"data" ,
1879
1880
[
1880
- list (map (com . maybe_box_datetimelike , t ))
1881
+ list (map (maybe_box_native , t ))
1881
1882
for t in self .itertuples (index = False , name = None )
1882
1883
],
1883
1884
),
0 commit comments