Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to convert one dimensional array into two dimensional array

x = x.reshape(-1, 1)

# remember to check shape of your variable using x.shape, if it shows
# (y, n) then it is already 2D, if it shows (y,) instead, it is 1D.
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #convert #dimensional #array #dimensional #array
ADD COMMENT
Topic
Name
8+3 =