Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

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])
 
PREVIOUS NEXT
Tagged: #print #column #numpy #array
ADD COMMENT
Topic
Name
1+8 =