You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ak.argmax and ak.argmin do not support Boolean arrays unless they are first cast to integer. Meanwhile, np.argmax and np.argmin can operate on Boolean arrays directly:
@delannoy - thanks for brining it up! I think, we do want to be as close as possible to Numpy. Python, from version 2.3 forward, has a bool type which is a subclass of int, the standard integer type. It has two possible values: True and False, which are special versions of 1 and 0 respectively and behave as such in arithmetic contexts.
Description of new feature
ak.argmax
andak.argmin
do not support Boolean arrays unless they are first cast to integer. Meanwhile,np.argmax
andnp.argmin
can operate on Boolean arrays directly:The text was updated successfully, but these errors were encountered: