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[0:2, 1:3])
Source by www.pythonprogramming.in #
 
PREVIOUS NEXT
Tagged: #extract #column #array
ADD COMMENT
Topic
Name
3+1 =