extract a column from np array in python code example
Example 1: extract column numpy array python
# Extract/ Slice only the 3rd column from the numpy array
print(a2[:,[2]])
Example 2: how to extract column from numpy array
print(a2[:,[2]])
# Extract/ Slice only the 3rd column from the numpy array
print(a2[:,[2]])
print(a2[:,[2]])