Detail Focused
Monday, July 31, 2017
python numpy
reshape
change the dimension of the array
rangeArray = np.arange(6,12) # [6,7,8,9,10,11]
rangeArray = rangeArray.reshape((2,3)) # [[6,7,8],[9,10,11]]
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment