array([[67, 19], [62, 83], [94, 14], [25, 47], [96, 69], [12, 61]], dtype=int64) array2([[38, 18, 40, 56], [40, 47, 47, 45], [26, 50, 20, 33]]) np.concatenate((arr,arr2),axis=1) array([[67, 19, 62, 83, 38, 18, 40, 56], [94, 14, 25, 47, 40, 47, 47, 45], [96, 69, 12, 61, 26, 50, 20, 33]], dtype=int64)
首先是在numpy数组拼接时,axis=1是指横向拼接,axis=0是指纵向拼接
而在pandas.DateFrame中,axis=1是指纵向的数据
df.drop(labels='Unnamed: 0',axis=1,inplace=True)