I can find equal column data with concatenation function. But there is something else I want to do. For example; If the 'customer ID' in the second file has values equal to the customer ID in the first file; I want to save the values in the 'customer rating' column in the same row with equal values in the 'customer rating' column in the row where the 'customer id' column is equal in the first file.
pd.merge(first_file_data,second_file_data,left_on='CUSTOMER ID',right_on='CUSTOMER ID')
Output:
Similar customer IDs in the merge transaction:
FİRST FİLE
CUSTOMER ID CUSTOMER SCORE
0 3091250 Nan
1 1122522 Nan
SECOND_FİLE
CUSTOMER ID CUSTOMER SCORE
0 3091250 750
1 1122522 890