how can I add legend in seaborn (countplot)

enter image description here I’m trying to add a legend in this countplot. I don’t know where is the problem? why it’s not working. Will any brother help me to solve this problem? ax=sns.countplot(x=’Tomatoe types’, data=df) ax.set_title(‘Tomatoe types’,fontsize = 18, fontweight=’bold’, color=’white’) ax.set_xlabel(‘types’, fontsize = 15, color=’white’) ax.set_ylabel(‘count’, fontsize = 15, color=’white’) ax.legend(labels = [‘Bad’,… Read More how can I add legend in seaborn (countplot)