[Solved] Python Error: object too deep for desired array.

python reports error: object too deep for desired array.
solution: reduce array [[1], [2], … [n]] down to [1,2,3…. .n], using this method x = np.array(x).flatten() , that is.


Read More: