Need to compare the user id in column 'pk' of first dataframe with user id in column 'user__id'of second dataframe and copy the matching data to a new dataframe. Both dataframes are to be imported from two different csv files.
Two dataframes to be compared for same user id
DataFrame A (user.csv)
pk phone
0 4972619 797979797971
1 4972608 454959544952
2 4972597 959594594543
3 4972596 454555545444
4 4972595 554545545547
5 4972594 555555555555
6 4972593 979797979791
7 4972592 959579999999
8 4972591 557979557454
DataFrame B (item.csv)
user__id user__phone
0 4972593 979797979791
1 7674145 525575779792
2 9251355 554755975999
3 1015996 945595774994
4 4704137 957425457575
5 2120715 545575979755
6 4972595 554545545547
7 1726034 495597794559
8 1102155 955755557579
9 4972597 959594594543