I have two pandas dataframes bookmarks and ratings where columns are respectively :
bookmarks
ratings
id_profile
id_item