0
How to flatten this array?
[ [ 1, 2, 3 ], [ 4, 5, 6 ] ]
3 Antworten
+ 3
# use .ravel method for this:
import numpy as np
t = np.array([1,2,3], [4,5,6])
print(t.ravel())
https://www.sololearn.com/learn/6678/?ref=app
+ 1
Abhay thanks.
+ 1
Kuba Siekierzyński Thanks, searching for this.