import seaborn as sns
import matplotlib.pyplot as plt
# Create the barplot (default estimator is np.mean)
ax=sns.barplot(x='day', y='total_bill', data=df, palette='tab10', estimator=np.sum)
# np.mean-საშუალო np.sum - ჯამი
# Annotate each bar with the mean total_bill values
for p in ax.patches:
ax.annotate(format(p.get_height(), '.2f'),
(p.get_x() + p.get_width() / 2., p.get_height()),
ha = 'center', va = 'center',
xytext =(0,-50),
textcoords = 'offset points')
# Show the plot
plt.show()