Keep only the rows of cups whose total is more than 300
NumPy · from Boolean masks
a > na[mask]&|~.sum().any().all()np.count_nonzeroPutting the kettle on…
Starting up…
Exercise 4
Keep only the rows of cups whose total is more than 300. The result should still be 2-D.
your answer
stuck? the lesson behind it
Boolean masks
Selecting by condition — and why the answer comes back flat.