Skip to content

Instantly share code, notes, and snippets.

@amankharwal
Created September 29, 2020 09:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save amankharwal/a781f9f36831ff950a039cb54acc7c40 to your computer and use it in GitHub Desktop.
Save amankharwal/a781f9f36831ff950a039cb54acc7c40 to your computer and use it in GitHub Desktop.
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