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 3e264d6 commit 571aee8Copy full SHA for 571aee8
pandas/core/arrays/categorical.py
@@ -2237,7 +2237,8 @@ def _repr_categories(self) -> list[str]:
2237
if self.categories.dtype == "str":
2238
# the extension array formatter defaults to boxed=True in format_array
2239
# override here to boxed=False to be consistent with QUOTE_NONNUMERIC
2240
- formatter = self.categories._values._formatter(boxed=False)
+ arr: ExtensionArray = self.categories._values
2241
+ formatter = arr._formatter(boxed=False)
2242
2243
format_array = partial(
2244
fmt.format_array, formatter=formatter, quoting=QUOTE_NONNUMERIC
0 commit comments