text_plain_output_1.png
import matplotlib.pyplot as plt
import seaborn as sns
sns.set_theme(style='darkgrid')
print(df.type.value_counts())
f, ax = plt.subplots(1, 1, figsize=(8, 8))
df.type.value_counts().plot(kind='bar', title='Transaction type', ax=ax, figsize=(8, 8))
plt.ticklabel_format(style='plain', axis='y')
for p in ax.patches:
    ax.annotate(str(format(int(p.get_height()), ',d')), (p.get_x(), p.get_height()))
plt.show()