I am confused about what went wrong in the code. I am trying to make a hotel recommendation system. When i run the code it complies but does not show any output.
def favoriteHotels(activeUser,N):
#1. subset the dataframe to have the rows corresponding to the active user
# 2. sort by the rating in descending order
# 3. pick the top N rows
topHotels = pd.DataFrame.sort(datay[datay.UserId==activeUser],['Rating'],ascending=[0])[:N]
# return the Ids of the corresponding hotels in hotels
return list(topHotels.Hotel_Id)
favoriteHotels(77,3) # Print the top 3 favorite Hotels of user 77