We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 55baa9b commit e077710Copy full SHA for e077710
pandas/io/formats/format.py
@@ -1522,13 +1522,13 @@ def _format_strings(self) -> List[str]:
1522
values = self.values
1523
flat_values = values.ravel()
1524
1525
- if not isinstance(flat_values, DatetimeIndex):
1526
- flat_values = DatetimeIndex(flat_values)
+ if not isinstance(flat_values, DatetimeArray):
+ flat_values = DatetimeArray(flat_values)
1527
1528
if self.formatter is not None and callable(self.formatter):
1529
fmt_values = [self.formatter(x) for x in flat_values]
1530
else:
1531
- fmt_values = flat_values._data._format_native_types(
+ fmt_values = flat_values._format_native_types(
1532
na_rep=self.nat_rep, date_format=self.date_format
1533
)
1534
0 commit comments