For this assignment, I have used the craft beer dataset from Kaggle.
Beer Dataset - Craft Beers Dataset
import pandas as pd
import seaborn as sns
import matplotlib.pyplot as plt
sns.set(style="white", color_codes=True)
pd.set_option('display.max_rows', 500) pd.set_option('display.max_columns', 500) pd.set_option('display.width', 1000)
beers = pd.read_csv('./beers.csv')
print(beers.head())
print(beers.describe())
print(beers.info())
print((beers["style"].value_counts()).head(10))
sns.countplot(x='style', data=beers)
sns.countplot(x="ounces", data=beers)
sns.FacetGrid(beers, hue="ounces").map(plt.scatter, 'ibu', 'abv').add_legend()
ax = sns.boxplot(x="ounces", y="abv", data=beers)
ax = sns.stripplot(x="ounces", y="abv", data=beers, jitter=True, edgecolor="gray")
sns.violinplot(x="ounces", y="abv", data=beers, size=6)