Answers for "how to display values on top of bar in barplot seaborn"

0

how to display values on top of bar in barplot seaborn

# if you have single graph
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)
Posted by: Guest on October-17-2021

Code answers related to "how to display values on top of bar in barplot seaborn"

Python Answers by Framework

Browse Popular Code Answers by Language