May 2020
Intermediate to advanced
404 pages
10h 52m
English
We will now aggregate the dataset's reviews by users and product IDs. We'll need the reviews for each product to determine what that product would be a good choice for:
user_df = data[['UserId','Text']]product_df = data[['ProductId', 'Text']]user_df = user_df.groupby('UserId').agg({'Text': ' '.join})product_df = product_df.groupby('ProductId').agg({'Text': ' '.join})
Similarly, reviews aggregated by users will help us determine what a user likes.
Read now
Unlock full access