📜  sns countplot 显示计数 - Python 代码示例

📅  最后修改于: 2022-03-11 14:47:22.501000             🧑  作者: Mango

代码示例2
# Declare graph/plot variable
sample_plot = sns.countplot(df['Sample'])

#This display the values on top of the bars
for p in sample_plot.patches:
        sample_plot.annotate('{}'.format(p.get_height()), (p.get_x()+.35, p.get_height()+20))