Setup
Choose an array and a mask
Use > < == !=, & | ~, %, and
np.any(…, axis=) / np.all(…, axis=) for row and column masks.
Experiment
Step 1 — The original array
- 1 · Array
- 2 · Cardboard
- 3 · Read or write
Edit by hand
The Boolean mask
Press any cell to switch it between True and False.
What NumPy would print