hello,a = np.array([[1,2],[3,4],[5,6]]).What is the difference between a[:,:-1] and a[:,-1]? : a = np.array([[1,2],[3,4],[5,6]])

How to understand the difference between a[:,:-1] and a[:,-1]?
[enter image description here][1]


  [1]: https://i.stack.imgur.com/AiyI6.png