@@ -941,7 +941,7 @@ def argmin(self, skipna: bool = True) -> int:
941941 --------
942942 >>> arr = pd.array([3, 1, 2, 5, 4])
943943 >>> arr.argmin()
944- 1
944+ np.int64(1)
945945 """
946946 # Implementer note: You have two places to override the behavior of
947947 # argmin.
@@ -975,7 +975,7 @@ def argmax(self, skipna: bool = True) -> int:
975975 --------
976976 >>> arr = pd.array([3, 1, 2, 5, 4])
977977 >>> arr.argmax()
978- 3
978+ np.int64(3)
979979 """
980980 # Implementer note: You have two places to override the behavior of
981981 # argmax.
@@ -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- [1*, 2*, 3*, 4*]
1965+ [* 1*, * 2*, * 3*, * 4*]
19661966 Length: 4, dtype: int64
19671967 """
19681968 if boxed :
@@ -2176,15 +2176,15 @@ def _reduce(
21762176 Examples
21772177 --------
21782178 >>> pd.array([1, 2, 3])._reduce("min")
2179- 1
2179+ np.int64(1)
21802180 >>> pd.array([1, 2, 3])._reduce("max")
2181- 3
2181+ np.int64(3)
21822182 >>> pd.array([1, 2, 3])._reduce("sum")
2183- 6
2183+ np.int64(6)
21842184 >>> pd.array([1, 2, 3])._reduce("mean")
2185- 2.0
2185+ np.float64( 2.0)
21862186 >>> pd.array([1, 2, 3])._reduce("median")
2187- 2.0
2187+ np.float64( 2.0)
21882188 """
21892189 meth = getattr (self , name , None )
21902190 if meth is None :
0 commit comments