Does anybody know how to extract a column from a multi-dimensional array in Python?
You can use this as well:
values = np.array([[1,2,3],[4,5,6]]) values[...,0] # first column #[1,4]
Note: This is not working for built-in array and not aligned (e.g. np.array([[1,2,3],[4,5,6,7]]) )