【发布时间】:2020-07-15 23:25:55
【问题描述】:
我通过公共字段comm 有以下两个数据帧
数据帧 I (vv)
V_Id object
V_Time object
comm object
dtype: object
V_Id V_Time comm
0 1234 2020-02-02-10-15-20 (166.0467, 35.2363)
1 1234 2020-02-02-10-15-22 (166.047, 35.2363)
2 1234 2020-02-02-10-15-23 (166.0473, 35.2363)
3 1234 2020-02-02-10-15-25 (166.0475, 35.2363)
DataFrame II (rr)
R_Id object
comm object
dtype: object
R_Id comm
0 One (166.0467, 35.2371)
1 One (166.0468, 35.2371)
2 One (166.0468, 35.2371)
当我运行vv.join(rr, on=['comm']) 时出现以下错误
ValueError: You are trying to merge on object and int64 columns. If you wish to proceed you should use pd.concat
我将如何通过comm 加入/合并?
【问题讨论】: