tvshows.csv = tvID | tvName
ratings.csv = userID | tvID | userRating
I have the following 2 CSV files with these columns. I wish to merge the columns so that the tvName column from tvshows.csv is displayed in ratings.csv corresponding to the correct tvID.
The main issue I am facing is that there are several of the same tvID data in the ratings.csv file as there are many users who may rate the same tv shows. (e.g, 5 people will rate The Simpsons, creating 5 The Simpsons tvIDs). Is there a way for me to take the tvName from tvshows.csv and merge it with the correct tvID in ratings.csv, bearing in mind there may be several of the same tvID in ratings.csv.
I am hoping to complete the task in Python using Pandas, appreciate any help provided.
Example of the data for tvshows.csv:
tvID | tvName
862 | The Simpsons
8844 | Futurama
15602| Paw Patrol
Example of the data for ratings.csv:
userID | tvID | rating
1 | 862 | 7
2 | 8844 | 6
3 | 862 | 8