Flatten numpy array

前端 未结 1 715
野的像风
野的像风 2020-12-15 17:14

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:



        
1条回答
  •  南笙
    南笙 (楼主)
    2020-12-15 17:29

    if you want [1,2,3,3], try this then

    np.hstack(b)
    

    0 讨论(0)
提交回复
热议问题