Set the first row of a copy of a to zero, then return a — which must come back…

NumPy · from Views, copies and shared memory

.base.copy()np.shares_memory.flags.owndataview vs copy

Putting the kettle on…

Starting up…

Exercise 3

Set the first row of a copy of a to zero, then return a — which must come back unchanged. The starter gets it wrong.

your answer
stuck? the lesson behind it
Views, copies and shared memory
Slicing doesn’t copy — and that will edit your data behind your back exactly once.