【发布时间】:2019-03-27 12:07:52
【问题描述】:
我正在尝试合并两个数据框:
this are tables I am trying to merge
and this is the result I want to achieve
所以,我希望合并的值不在同一行。
当我尝试这样合并时:
pd.merge(a,b,how='inner', on=['date_install','device_os'])
它将值合并为一个原始值。
请提出解决方法
【问题讨论】:
-
那么需要
df = pd.concat([a, b], ignore_index=True)吗? -
如果是,就是骗this