Return the coordinates of every mark of 80 or more, using np.nonzero
NumPy · from where, select and clip
np.wherenp.selectnp.clipnp.nonzeroa[mask] = xnp.putmaskPutting the kettle on…
Starting up…
Exercise 3
Return the coordinates of every mark of 80 or more, using np.nonzero.
your answer
stuck? the lesson behind it
where, select and clip
An if-statement over a whole array, without losing its shape.