text_plain_output_2.png text_plain_output_1.png image_output_1.png
import matplotlib.pyplot as plt

import matplotlib.pyplot as plt # plotting

import pandas as pd # data processing, CSV file I/O (e.g. pd.read_csv)

import seaborn as sns

df1 = pd.read_csv('../input/BlackFriday.csv', delimiter=',')

import seaborn as sns
import matplotlib.pyplot as plt
plt.figure(figsize=(16, 6))
sns.set(style="whitegrid")
ax = sns.violinplot(x=df1['Age'], y=df1['Purchase'], palette='Set2')

produtos = df1['Product_ID'].value_counts().head(10)
plt.figure(figsize=(16, 6))
for i, v in produtos.iteritems():
    plt.bar(i, v, label=i)
    plt.text(i, v, v, va='bottom', ha='center')
plt.title('Produtos mais comprados')
plt.show()