image_output_1.png
import matplotlib.pyplot as plt

import pandas as pd

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

import seaborn as sns

df = pd.read_csv('/kaggle/input/supermarket-sales/supermarket_sales - Sheet1.csv')

df.describe().style.background_gradient(cmap='Blues')

df.isna().mean() / len(df)

df.nunique()

new = df[['Product line', 'Total']].groupby(['Product line'], as_index=False).sum().sort_values(by='Total', ascending=False)
plt.figure(figsize=(15, 5))
sns.barplot(data=new, x='Product line', y='Total')
plt.show()