Now the same question for a[[0, 2]] — fancy indexing rather than a slice
NumPy · from Views, copies and shared memory
.base.copy()np.shares_memory.flags.owndataview vs copyPutting the kettle on…
Starting up…
Exercise 2
Now the same question for a[[0, 2]] — fancy indexing rather than a slice. Return the boolean.
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.