print column in 2d numpy array

import numpy as np
x=np.arange(25).reshape(5,5)
print(x)
#print(x[:,index_of_column_you_need])
print(x[:,3])

Here is what the above code is Doing:
1. We’re creating a 5×5 array of integers using the numpy arange function.
2. We’re reshaping this array into a 5×5 matrix using the numpy reshape function.
3. We’re printing the entire matrix.
4. We’re printing the third column of the matrix.