Seaborn be gud

This commit is contained in:
2023-03-27 15:53:04 +02:00
parent d3686c8b0a
commit a88af62166
2 changed files with 37 additions and 9 deletions

View File

@@ -1,7 +1,14 @@
# Visualisations for Data
import matplotlib.pyplot as plt
import seaborn as sns
import gunner
from numpy import count_nonzero
sns.set()
plt.xticks(rotation=90)
games_vis = gunner.game_sales_NA
sns.relplot(data = games_vis, x = "Year", y = "NA_Sales")
games_fig = sns.barplot(data = games_vis, x = games_vis["Year"], y = games_vis["NA_Sales"], estimator = count_nonzero)
plt.show()