Skip to content

Commit 65e1374

Browse files
committed
Remove repr from MyExtensionArray
1 parent 17ec834 commit 65e1374

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: pandas/core/arrays/base.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1959,10 +1959,10 @@ def _formatter(self, boxed: bool = False) -> Callable[[Any], str | None]:
19591959
--------
19601960
>>> class MyExtensionArray(pd.arrays.NumpyExtensionArray):
19611961
... def _formatter(self, boxed=False):
1962-
... return lambda x: "*" + str(x) + "*" if boxed else repr(x) + "*"
1962+
... return lambda x: "*" + str(x)
19631963
>>> MyExtensionArray(np.array([1, 2, 3, 4]))
19641964
<MyExtensionArray>
1965-
[np.int64(1)*, np.int64(2)*, np.int64(3)*, np.int64(4)*]
1965+
[1*, 2*, 3*, 4*]
19661966
Length: 4, dtype: int64
19671967
"""
19681968
if boxed:

0 commit comments

Comments
 (0)