如何使用来自两个不同数据框的数据构建 pandas 数据透视表?
表 1: 数据框 1
A B C D
1 apple 100 qwerty
2 apple 101 qwerty1
3 apple 102 qwerty2
表 2:
A B C D
1 orange 200 asdfgh1
2 orange 201 asdfgh2
3 orange 202 asdfgh3
数据透视表目标:
C D
A B
1 apple 100 qwerty
orange 200 asdfgh1
2 apple 101 qwerty1
orange 201 asdfgh2