Recall our gradebook from the previous exercise:
Suppose this data is stored in a Pandas DataFrame called
The same Seaborn command that you previously learned (
sns.barplot()) will plot this data in a bar plot and automatically aggregate the data:
sns.barplot(data=df, x="student", y="grade")
In the example above, Seaborn will aggregate grades by
student, and plot the average
grade for each student.
Use Seaborn to plot the average grade for each assignment. Take a look at gradebook.csv for the column names.
plt.show() to display the graph.
Sign up to start coding