Remove column of N-by-M array
<p>I have an ndarray of size (54,3) which holds the coordinates of my points as following:</p>

<pre><code>array([[ 30., -24., -18.],
   [-26., -20., -20.],
   [ 30., -38.,  30.],
   [ 30., -40.,  30.],
   [ 30., -38.,  50.],
           .
           .
           .
   [-42., -30.,  -8.]])
</code></pre>

<p>I am trying to remove the Z-coordinate from all the points and result in an (54,2) ndarray, but I cannot make it work.</p>

<p>I am trying with np.delete and np.squeeze but I'm always getting errors. Any help would be much appreciated.</p>