Having a little trouble on something that seems pretty simple. I want to join these two arrays to meet output:
array([['category_1', '4500', '5000'], ['category_2', '3200', '5000'], ['category_3', '3000', '5000'], ['category_4', '2000', '5000']], dtype='<U8')
I have some data
data = np.array([['category_1', '4500', '5000'], ['category_2', '3200', '5000']])
And I have this other data
other_data = np.array([['category_3', '3000', '5000'], ['category_4', '2000', '5000'])
And I get this error when I do this
np.concatenate(data, other_data)
TypeError: only integer scalar arrays can be converted to a scalar index