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 3825aeb commit 2a60c15Copy full SHA for 2a60c15
pandas/core/arrays/base.py
@@ -697,8 +697,12 @@ def _formatter(self, boxed=False):
697
-------
698
Callable[[Any], str]
699
A callable that gets instances of the scalar type and
700
- returns a string. By default, :func:`repr` is used.
+ returns a string. By default, :func:`repr` is used
701
+ when ``boxed=False`` and :func:`str` is used when
702
+ ``boxed=True``.
703
"""
704
+ if boxed:
705
+ return str
706
return repr
707
708
def _formatting_values(self):
0 commit comments