Skip to content

Instantly share code, notes, and snippets.

@betterdatascience
Created December 3, 2020 05:53
Show Gist options
  • Save betterdatascience/06667a7e7018b1659bfc12617c46b409 to your computer and use it in GitHub Desktop.
Save betterdatascience/06667a7e7018b1659bfc12617c46b409 to your computer and use it in GitHub Desktop.
002_smote
ax = df['TARGET'].value_counts().plot(kind='bar', figsize=(10, 6), fontsize=13, color='#087E8B')
ax.set_title('Credit card fraud (0 = normal, 1 = fraud)', size=20, pad=30)
ax.set_ylabel('Number of transactions', fontsize=14)
for i in ax.patches:
ax.text(i.get_x() + 0.19, i.get_height() + 700, str(round(i.get_height(), 2)), fontsize=15)
@aly202012
Copy link

good

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment