InĀ [1]:
# Code attribution: Yiyin Shen, Tyler Caraza-Harter
# Imports
import matplotlib.pyplot as plt
import seaborn
import pandas
InĀ [2]:
# Read the data and plot the columns
grades = pandas.read_csv("Grades.csv")
data = grades[(grades["Project"] != 0) & (grades["Exam"] != 0)]
seaborn.relplot(data, x = "Project", y = "Quiz", size = "Exam", col = "Lecture", row = "Section")
Out[2]:
<seaborn.axisgrid.FacetGrid at 0x209693cd950>
InĀ [3]:
# Plot the sections as color (as numerical column)
seaborn.relplot(data, x = "Project", y = "Quiz", size = "Exam", hue = "Section", col = "Lecture")
Out[3]:
<seaborn.axisgrid.FacetGrid at 0x2096c1f7bd0>
InĀ [4]:
# Plot the sections as color (as categorical column)
copy = data.copy()
copy["Section"] = data["Section"].astype("category")
seaborn.relplot(copy, x = "Project", y = "Quiz", size = "Exam", hue = "Section", col = "Lecture")
Out[4]:
<seaborn.axisgrid.FacetGrid at 0x2096c3e2b10>
InĀ [5]:
# Scatter plots for each pair of grades
seaborn.pairplot(copy.iloc[:, 0:3])
Out[5]:
<seaborn.axisgrid.PairGrid at 0x2096c43e590>