Skip to content

Instantly share code, notes, and snippets.

Created Jun 12, 2021
What would you like to do?
ratings = data["rating"].value_counts()
numbers = ratings.index
quantity = ratings.values
custom_colors = ["skyblue", "yellowgreen", 'tomato', "blue", "red"]
plt.figure(figsize=(5, 5))
plt.pie(quantity, labels=numbers, colors=custom_colors)
central_circle = plt.Circle((0, 0), 0.5, color='white')
fig = plt.gcf()
plt.rc('font', size=12)
plt.title("Amazon Alexa Reviews", fontsize=20)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment