Skip to content

Commit 87265bc

Browse files
committed
BUG: pass native=True arg to maybe_box_datetimelike
1 parent af2f84d commit 87265bc

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

pandas/core/frame.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1544,7 +1544,10 @@ def to_dict(self, orient="dict", into=dict):
15441544
for row in self.itertuples(index=False, name=None)
15451545
)
15461546
return [
1547-
into_c((k, com.maybe_box_datetimelike(v)) for k, v in row.items())
1547+
into_c(
1548+
(k, com.maybe_box_datetimelike(v, native=True))
1549+
for k, v in row.items()
1550+
)
15481551
for row in rows
15491552
]
15501553

0 commit comments

Comments
 (0)