我正在尝试合并两个不同维的numpy数组。它们是x =(500,500,500)和y =(500,2)。
我尝试过np.append(x,y,axis=0)
并遇到了错误。我还尝试了各种轴值,但仍然没有任何东西。任何建议将不胜感激!
>> np.append(x,y,axis=0)
>> Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/user/anaconda3/envs/mk/lib/python3.6/site-packages/numpy/lib/function_base.py", line 4528, in append
return concatenate((arr, values), axis=axis)
ValueError: all the input arrays must have same number of dimensions