Skip to content

Commit e61e58e

Browse files
authored
PERF: faster Series.to_dict (#50089)
1 parent e0b111b commit e61e58e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/core/series.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1823,7 +1823,7 @@ def to_dict(self, into: type[dict] = dict) -> dict:
18231823
else:
18241824
# Not an object dtype => all types will be the same so let the default
18251825
# indexer return native python type
1826-
return into_c((k, v) for k, v in self.items())
1826+
return into_c(self.items())
18271827

18281828
def to_frame(self, name: Hashable = lib.no_default) -> DataFrame:
18291829
"""

0 commit comments

Comments
 (0)