I have a dataframe with information for individual birds (identified by a band number), called INFO_Bands. Because birds can have multiple band numbers over their lifetime, each bird also gets a unique birdID. I have a dataframe with the BirdIDs and their corresponding band numbers (sometimes a birdID has one band number, sometimes several), called BirdID_BandNumber. I'd like to add a column with the correct bird ID to my dataframe of information that only has a bird's band number (INFO_Bands).
The dataframe I want to add the birdID to (INFO_Bands) looks something like this. Some birds have multiple entries that I would like to keep, others only have one (for this reason, I don't think "merging" my files will work).
Example of INFO_Bands
Band Number - Score - Sex - Island - Sample Date
1234-12345 1 M MSI 12 Jun
1234-12345 1 M MR 8 Aug
9876-98765 3 F MSI 5 May
4567-7890 1 F MSI 14 Jun
Example of BirdID_BandNumber
Band Number - BirdID
1234-12345 MSI45678
1234-12345 MSI45678
9876-98765 MR1234
4567-7890 MR1234
Desired outcome:
Band Number - Score - Sex - Island - Sample Date - BirdID
1234-12345 1 M MSI 12 Jun MSI45678
1234-12345 1 M MR 8 Aug MSI45678
9876-98765 3 F MSI 5 May MR1234
4567-7890 1 F MSI 14 Jun MR1234
Any help is appreciated!