我有两个数据帧df1和df2,我想根据来自两个列的迭代号将它们组合在一起
df1 =
iteration IOPS Latency
0 1_1 46090 0.7300
1 2_2 12 0.0221
2 3_3 49164 0.1236
3 4_4 98311 0.1318
4 5_5 196604 0.2076
5 6_6 249843 0.1467
6 7_7 298974 0.1578
7 8_8 348108 0.1604
8 9_9 397230 0.1707
df2 =
iteration IOPS Latency
0 1_1 46074 0.6977
1 2_2 12 0.0279
2 3_3 49159 0.1921
3 4_4 98307 0.2189
4 5_5 298976 0.2337
5 6_6 397265 0.2622
我需要组合df1中的迭代1_1、2_2、3_3、9_9和1_1、2_2、5_5、6_6
df3 =
iteration IOPS Latency iteration IOPS Latency
1_1 46090 0.7300 1_1 46074 0.6977
2_2 12 0.0221 2_2 12 0.0279
3_3 49164 0.1236 5_5 298976 0.2337
9_9 397230 0.1707 6_6 397265 0.2622