Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

extract column of n array

import numpy as np
 
the_arr = np.array([[0, 1, 2, 3, 5, 6, 7, 8],
                    [4, 5, 6, 7, 5, 3, 2, 5],
                    [8, 9, 10, 11, 4, 5, 3, 5]])
 
 
print(the_arr[:, 1:5])
Source by www.pythonprogramming.in #
 
PREVIOUS NEXT
Tagged: #extract #column #array
ADD COMMENT
Topic
Name
9+1 =