When you remove a row or column that is not at the edge of the array (i.e., not the first or last one), it is generally not possible to create a view into the original array.
The reason is that numpy arrays are stored in contiguous blocks of memory, and the stride (the number of bytes between consecutive elements) is fixed along each axis. When you remove a row or column that is not at the edge, the resulting array would require non-contiguous memory access, which is not supported by numpy's view mechanism.
To illustrate this, consider a 2D array with shape (n, m) stored in row-major order (C-order). The memory layout is:
arr[0, 0], arr[0, 1], ..., arr[0, m-1], arr[1, 0], ..., arr[n-1, m-1]
If you remove the last row, the resulting array is still contiguous in memory:
arr[0, 0], arr[0, 1], ..., arr[0, m-1], arr[1, 0], ..., arr[n-2, m-1]
But if you remove a row in the middle, say the i-th row, the resulting array would require skipping over the i-th row in memory, which is not contiguous:
arr[0, 0], ..., arr[i-1, m-1], arr[i+1, 0], ..., arr[n-1, m-1]
Similarly, removing a column that is not the first or last one would require non-contiguous memory access along the rows.
Therefore, when you remove a row or column that is not at the edge, numpy has to create a copy of the data to ensure contiguous memory access.
However, there are some libraries and data structures that can handle non-contiguous data, such as sparse matrices or data structures that use indexing or pointers to access non-contiguous data. But these are not the default behavior of numpy arrays.