pandas 向量拼接 (一定要用上ignore_index = True)
oneVector2 = pd.DataFrame(data =np.random.random((1,3)))
oneVector1 = pd.DataFrame(data =np.random.random((1,3)))
按照“行”进行拼接:
ccc = pd.concat([oneVector1,oneVector2],axis =0,ignore_index = True)
如何对列进行拼接呢?
ccc = pd.concat([oneVector1,oneVector2],axis =1,ignore_index = True)