Skip to content

Commit 96db577

Browse files
revert changes to pandas/core/arrays/numpy_.py
1 parent 7b379f4 commit 96db577

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

pandas/core/arrays/numpy_.py

-5
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,6 @@ def _from_factorized(cls, values, original) -> "PandasArray":
192192

193193
@classmethod
194194
def _concat_same_type(cls, to_concat) -> "PandasArray":
195-
to_concat = [arr.to_numpy() for arr in to_concat]
196195
return cls(np.concatenate(to_concat))
197196

198197
def _from_backing_data(self, arr: np.ndarray) -> "PandasArray":
@@ -348,17 +347,13 @@ def min(self, skipna: bool = True, **kwargs) -> Scalar:
348347
)
349348
return result
350349

351-
amin = min
352-
353350
def max(self, skipna: bool = True, **kwargs) -> Scalar:
354351
nv.validate_max((), kwargs)
355352
result = masked_reductions.max(
356353
values=self.to_numpy(), mask=self.isna(), skipna=skipna
357354
)
358355
return result
359356

360-
amax = max
361-
362357
def sum(self, axis=None, skipna=True, min_count=0, **kwargs) -> Scalar:
363358
nv.validate_sum((), kwargs)
364359
return nanops.nansum(

0 commit comments

Comments
 (0)