g =sns.barplot(x='',y='survived',data=groupedvalues)
for index, row in groupedvalues.iterrows():
g.text(row.name,row.survived, round(row.survived,2), color='black', ha="center")
# If you have single graph (matplotlib)
for p in ax.patches:
ax.annotate(str(p.get_height()), xy=(p.get_x(), p.get_height()))
# if you have single graph (seaborn)
ax = sns.countplot(x='User', data=df)
ax.bar_label(ax.containers[0])
# if you have subplots or multiple graphs
ax = sns.countplot(x='User', hue='C', data=df)
for container in ax.containers:
ax.bar_label(container)