Recommend a best book based on the ratings:
Sort by User IDs
number of unique users in the dataset
number of unique books in the dataset
converting long data into wide data using pivot table
Replacing the index values by unique user Ids
Impute those NaNs with 0 values
Calculating Cosine Similarity between Users on array data
Store the results in a dataframe format
Set the index and column names to user ids
Nullifying diagonal values
Most Similar Users
extract the books which userId 162107 & 276726 have watched
extract the books which userId 276729 & 276726 have watched