Sum only the values of cups above 100, using where= instead of building a filte…

NumPy · from Making it fast

out=in-place opsnp.vectorizetemporarieswhere=contiguityfloat32

Putting the kettle on…

Starting up…

Exercise 1

Sum only the values of cups above 100, using where= instead of building a filtered copy.

your answer
stuck? the lesson behind it
Making it fast
Kill the loops, stop copying, reuse buffers — in that order.