Skip to content

Instantly share code, notes, and snippets.

@amankharwal
Created Sep 29, 2020
Embed
What would you like to do?
plt.figure(figsize=(8,6))
plt.title('Distribution of Target', size=18)
sns.countplot(x=data['auth'])
target_count = data.auth.value_counts()
plt.annotate(s=target_count[0], xy=(-0.04,10+target_count[0]), size=14)
plt.annotate(s=target_count[1], xy=(0.96,10+target_count[1]), size=14)
plt.ylim(0,900)
plt.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment