text_html_output_1.png
import matplotlib.pyplot as plt

import pandas as pd

import seaborn as sns

data = pd.read_csv('../input/onlineretail/OnlineRetail.csv', encoding='cp1252', header=0)

data = data.dropna()

Rev_Coustomer = data.groupby('CustomerID')['Revenue'].sum().sort_values(ascending=False).reset_index()[:15]
plt.figure(figsize=(12, 5))
sns.barplot(x='CustomerID', y='Revenue', data=Rev_Coustomer)
plt.title('Top15 spend Most Client ')
plt.xlabel('Client')
plt.ylabel('Total Revenue')