Docs about boolean scalars in indexing of numpy array
Docs about boolean scalars in indexing of numpy array Question: The NumPy’s array indexing documentation seems to contain no mention of array indexing Of the type x[True], or x[False]. Empirically, using True inserts a new dimension of size 1, while using False inserts a new dimension of size 0. The behavior of x[True, True] only …