【发布时间】:2018-05-03 10:27:54
【问题描述】:
我想将 numpy 数组存储到另一个 numpy 数组中
我正在使用np.concatenate
这是我的代码
x=np.concatenate(x,s_x)
这些是x and s_x的类型和形状
Type of s_x: <class 'numpy.ndarray'>, Shape of s_x: (173,)
Type of x: <class 'numpy.ndarray'> (0,), Shape of x: (0,)
这是显示的错误
TypeError: only integer scalar arrays can be converted to a scalar index
【问题讨论】: