答案 0 :(得分:3)
正如您所描述的那样,您可以自己完成。 Concat B
和C
然后将其与A
合并。
A.merge(pd.concat([B,C]), on=['ID','ID_NAME'])
ID ID_NAME Address DOB SALARY SCHOOL
0 1 A ABC 1988-10-11 NaN DPN
1 2 B CDE 1988-10-12 NaN NNN
2 3 C FGH 1988-10-13 NaN GURUKUL
3 4 D FGH 1988-10-14 NaN DPS
4 5 E FGH 1988-10-15 NaN NNN
5 6 F FGH 1988-10-16 20000.0 NaN
6 7 G FGH 1988-10-17 1000.0 NaN
7 8 H FGH 1988-10-18 2000.0 NaN
8 9 I FGH 1988-10-19 3000.0 NaN
9 10 J FGH 1988-10-20 2000.0 NaN