Skip to content

Commit 77fec12

Browse files
committed
change versionchanged to 1.4.0. Fix typing issue, update API calls
1 parent 038eff5 commit 77fec12

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

pandas/core/frame.py

+4-3
Original file line numberDiff line numberDiff line change
@@ -1543,7 +1543,7 @@ def from_dict(
15431543
If 'tight', assume a dict with keys ['index', 'columns', 'data',
15441544
'index_names', 'column_names'].
15451545
1546-
.. versionadded:: 1.2.0
1546+
.. versionadded:: 1.4.0
15471547
'tight' as an allowed value for the ``orient`` argument
15481548
15491549
dtype : dtype, default None
@@ -1629,6 +1629,7 @@ def from_dict(
16291629
realdata = data["data"]
16301630

16311631
def create_index(indexlist, namelist):
1632+
index: Index
16321633
if len(namelist) > 1:
16331634
index = MultiIndex.from_tuples(indexlist, names=namelist)
16341635
else:
@@ -1737,7 +1738,7 @@ def to_dict(self, orient: str = "dict", into=dict):
17371738
Abbreviations are allowed. `s` indicates `series` and `sp`
17381739
indicates `split`.
17391740
1740-
.. versionadded:: 1.2.0
1741+
.. versionadded:: 1.4.0
17411742
'tight' as an allowed value for the ``orient`` argument
17421743
17431744
into : class, default dict
@@ -1877,7 +1878,7 @@ def to_dict(self, orient: str = "dict", into=dict):
18771878
(
18781879
"data",
18791880
[
1880-
list(map(com.maybe_box_datetimelike, t))
1881+
list(map(maybe_box_native, t))
18811882
for t in self.itertuples(index=False, name=None)
18821883
],
18831884
),

0 commit comments

Comments
 (0)