Skip to content

Instantly share code, notes, and snippets.

@amankharwal
Created January 17, 2021 09:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save amankharwal/558deae4362de8d3e24ec2c45a329eba to your computer and use it in GitHub Desktop.
Save amankharwal/558deae4362de8d3e24ec2c45a329eba to your computer and use it in GitHub Desktop.
df.average_rating = df.average_rating.astype(float)
fig, ax = plt.subplots(figsize=[15,10])
sns.distplot(df['average_rating'],ax=ax)
ax.set_title('Average rating distribution for all books',fontsize=20)
ax.set_xlabel('Average rating',fontsize=13)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment