I have a numpy array which looks like:
myArray = np.array([[1,2],[3]])
But I can not flatten it,
In: myArray.flatten() Out:
np.hstack works in this case
np.hstack
In [69]: np.hstack(myArray) Out[69]: array([1, 2, 3])