如何使用pandas python连接两个不同的数据帧

时间:2017-11-19 13:39:36

标签: python pandas

第一个dataframe1只是三行的标题。(只是一个字符串行)

myworking Distribution 我们的商店只在乡村 我们从2017年9月16日起工作了52周。

第二个dataframe2是我的主要工作部分,标题如下所示。

Item,item details,price,packcolor,flavour,total orders (in thousand),delivery time (in weeks)
1,Priceless chocklate biscuits,20,black,chocolate,16,3
2,Priceless chocklate biscuits,25,white,vanila,23,6
3,Priceless chocklate biscuits,20,orange,Orange,54,2

当我使用beow声明时:

df = pd.concat(dataframe1,dataframe2,axis=0)

它在excel中以onecolumn显示结果,并删除了dataframe2的标题。

0 个答案:

没有答案