Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to convert 2 dimensional in 1 dimensional array

#source: https://www.kite.com/python/answers/how-to-convert-a-2d-numpy-array-to-a-1d-array-in-python

array_1d = array_2d. flatten() flatten `array_2d`
print(array_1d)
 
PREVIOUS NEXT
Tagged: #convert #dimensional #dimensional #array
ADD COMMENT
Topic
Name
5+8 =