numpy get column from array code example
Example 1: extract column numpy array python
# Extract/ Slice only the 3rd column from the numpy array
print(a2[:,[2]])
Example 2: access to specific column array numpy
second_and_third_column = an_array[:, 1:3]