(self)
| 1522 | values: ExtensionArray |
| 1523 | |
| 1524 | def _format_strings(self) -> list[str]: |
| 1525 | values = self.values |
| 1526 | |
| 1527 | formatter = self.formatter |
| 1528 | fallback_formatter = None |
| 1529 | if formatter is None: |
| 1530 | fallback_formatter = values._formatter(boxed=True) |
| 1531 | |
| 1532 | if isinstance(values, Categorical): |
| 1533 | # Categorical is special for now, so that we can preserve tzinfo |
| 1534 | array = values._internal_get_values() |
| 1535 | else: |
| 1536 | array = np.asarray(values, dtype=object) |
| 1537 | |
| 1538 | fmt_values = format_array( |
| 1539 | array, |
| 1540 | formatter, |
| 1541 | float_format=self.float_format, |
| 1542 | na_rep=self.na_rep, |
| 1543 | digits=self.digits, |
| 1544 | space=self.space, |
| 1545 | justify=self.justify, |
| 1546 | decimal=self.decimal, |
| 1547 | leading_space=self.leading_space, |
| 1548 | quoting=self.quoting, |
| 1549 | fallback_formatter=fallback_formatter, |
| 1550 | ) |
| 1551 | return fmt_values |
| 1552 | |
| 1553 | |
| 1554 | def format_percentiles( |
nothing calls this directly
no test coverage detected