View onto a numpy array?

Sure, just index it as you normally would. E.g. y = x[:k, :] This will return a view into the original array. No data will be copied, and any updates made to y will be reflected in x and vice versa. Edit: I commonly work with >10GB 3D arrays of uint8’s, so I worry about … Read more