Created
December 3, 2020 05:53
-
-
Save betterdatascience/06667a7e7018b1659bfc12617c46b409 to your computer and use it in GitHub Desktop.
002_smote
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
good