Seaborn be gud
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user