Flatten Numpy Array
Is there a simple way in NumPy to flatten type object array? I know .flatten() method flattens non-object type arrays constructed from same size arrays: I1 a = np.array([[1],[2],[3
Solution 1:
if you want [1,2,3,3], try this then
np.hstack(b)
Post a Comment for "Flatten Numpy Array"