我想在Pandas(python)中连接两个数据帧(df1,df2),这样结果将包含df1的所有索引(唯一和常见)以及df2在df1中没有的任何索引.一个例子:
DF1
col1 col2
0 1 2
1 2 3
2 3 4
DF2
col1 col2
1 4 6
2 2 3
3 5 5
我希望结果如下:
col1 col2
0 1 2
1 2 3
2 3 4
3 5 5