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 571aee8 commit 309ba5fCopy full SHA for 309ba5f
pandas/core/arrays/categorical.py
@@ -2237,8 +2237,9 @@ 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
- arr: ExtensionArray = self.categories._values
2241
- formatter = arr._formatter(boxed=False)
+ formatter = cast(ExtensionArray, self.categories._values)._formatter(
+ boxed=False
2242
+ )
2243
2244
format_array = partial(
2245
fmt.format_array, formatter=formatter, quoting=QUOTE_NONNUMERIC
0 commit comments