I have two DataFrames structured like the following:
user_id movie_id rating
438 588 5
758 588 5
913 588 5
1024 588 5
1214 588 5
user_id movie_id rating
45 3578 3
321 3578 3
467 3578 3
758 3578 3
1024 3578 3
1381 3578 3
Is there a Pandas-native way to isolate in a list the values for user_id which appear in both DataFrames?
For the above example, the expected output would be:
[758, 1024]
--
Note: in order to help bootstrap Data Science Stack Exchange, this question has been posted with more background on datascience.stackexchange.com - if you are also a user of DSSE please help this site growing by answering directly there