], dtype='<U1')]], dtype=object)class_id.astype(int) ValueError: setting an arrayelement with a sequence.
------------------------------------------------------------------------
a = np.array([1,2,3])c = np.array([a, b]) C中有两个不同大小的np.ndarrays,当我尝试调用c.astype(np.int8)时,我会得到一个ValueError: setting an arrayelement with a sequence.的值错误。
Update:删除屏幕截图,下面是截图中的代码:import matplotlib.pyplot as plt
y = np.array([[1,2],[1,2,3],[1,2,3,4],[1,2,3,4,5],[1,2,5,7,9]])
plt.plot(x,y) #gives ValueError: setting an arrayelement with a sequence.#A relaistic e