Boolean array
Also written: boolean arrays
An array of True and False values, usually made by comparing an array with something, like `rng.random(10) < 0.3`. NumPy counts True as 1, so `.sum()` counts them and `.mean()` gives their share.
Also written: boolean arrays
An array of True and False values, usually made by comparing an array with something, like `rng.random(10) < 0.3`. NumPy counts True as 1, so `.sum()` counts them and `.mean()` gives their share.