text_html_output_1.png
import matplotlib.pyplot as plt

import pandas as pd

import seaborn as sns

df = pd.read_csv('/kaggle/input/customer-shopping-dataset/customer_shopping_data.csv')

df.drop(['invoice_no', 'customer_id', 'invoice_date'], axis=1, inplace=True)

df.isnull().sum()

g = df.groupby('gender')[['price']].sum().reset_index()
g

plt.ticklabel_format(style='plain', axis='y')

c = df.groupby('category')[['price']].sum().reset_index()
c

plt.ticklabel_format(style='plain', axis='y')

plt.ticklabel_format(style='plain', axis='y')

p = df.groupby('payment_method')[['price']].sum().reset_index()
p

plt.ticklabel_format(style='plain', axis='y')

plt.ticklabel_format(style='plain', axis='y')

s = df.groupby('shopping_mall')[['price']].sum().reset_index()
s

plt.figure(figsize=(15, 5))
sns.barplot(x='shopping_mall', y='price', data=s)
plt.title('money spended in which mall')
plt.ylabel('amount spend')
plt.ticklabel_format(style='plain', axis='y')
plt.show()