text_html_output_1.png
import pandas as pd

new_pr = pd.read_csv('/kaggle/input/collaborative-csv/data_collaborative_full_csv')
new_pr = new_pr.sample(50000)

sentiment_matrix = new_pr.pivot_table(values='total_score', index='asin', columns='reviewerID', fill_value=0)
sentiment_matrix