Skip to content

Commit b5ad62c

Browse files
author
Egor Panfilov
committed
BUG: Error while saving DataFrame with TimedeltaIndex to .csv #10833
1 parent 931e0e5 commit b5ad62c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/core/format.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2174,7 +2174,7 @@ def __init__(self, values, nat_rep='NaT', box=False, **kwargs):
21742174
def _format_strings(self):
21752175
formatter = self.formatter or _get_format_timedelta64(self.values, nat_rep=self.nat_rep,
21762176
box=self.box)
2177-
fmt_values = [formatter(x) for x in self.values]
2177+
fmt_values = np.array([formatter(x) for x in self.values])
21782178
return fmt_values
21792179

21802180

0 commit comments

Comments
 (0)