Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ''' Create a plot that displays the distribution of ratings that are displayed (STARS) VS what the true
- rating was from votes(RATING)'''
- sns.kdeplot(
- data = fandago,
- shade = True,
- x = 'STARS',
- label = 'STARS'
- )
- sns.kdeplot(
- data = fandago,
- shade = True,
- x = 'RATING',
- label = 'TRUE RATING'
- )
- plt.title('Review distribution of RATING and STARS')
- plt.xlabel('Rating')
- plt.ylabel('DENCITY')
- plt.legend(loc = 'best')
- plt.show()
Add Comment
Please, Sign In to add comment