I have two CSV files, doctors.csv, and clinics.csv, in clinics.csv there is cols Clinic_ID and Clinic_Name, I then need to add a new column in doctors.csv to add the Clinic_ID where the Clinic_Name from doctors.csv matches Clinic_Name in clinics.csv.
clinics.csv
Clinic_ID Clinic_Name
1 Clinic 1
2 Clinic 2
3 Clinic 3
4 Clinic 4
doctors.csv
Clinic_ID Clinic_Name
add ID Clinic 1
add ID Clinic 2
add ID Clinic 3
add ID Clinic 4
If you could point me in the right direction on where to go from here much appreciated, as I am not sure if this involves mapping df1 to df2 based on the Clinic Names and then populate the ID based on that, or not.