Subtract each stall's mean from cups, so every column ends up centred on zero
NumPy · from Broadcasting
shape rulesnp.newaxisouter operationsValueErrorPutting the kettle on…
Starting up…
Exercise 3
Subtract each stall's mean from cups, so every column ends up centred on zero.
your answer
stuck? the lesson behind it
Broadcasting
How NumPy makes mismatched shapes work — without copying anything.