arkouda icon indicating copy to clipboard operation
arkouda copied to clipboard

max and min of bool to return bool like numpy

Open ajpotts opened this issue 4 months ago • 0 comments

max and min functions on pdarrays of type bool should return bool to better align with numpy:

In [7]: pda = ak.zeros(size, dtype=dtype)

In [8]: ak.max(pda)
Out[8]: 0

In [9]: type(ak.max(pda))
Out[9]: numpy.int64

In [10]: type(np.max(pda.to_ndarray()))
Out[10]: numpy.bool_

ajpotts avatar Oct 23 '24 19:10 ajpotts