I need to display the data above a seaborn barplot. The numbers represent dollars and I would like to display the value 25200 as $25.2k.
This is the code I currently use to display the below graph.
import seaborn as sns
import matplotlib.pyplot as plt
i = sns.barplot(ax = axes[1,0], x=lr_2021['decile'], y=np.round((lr_2021['NonCAT Severity']/1000),2), color = 'purple')
i.bar_label(axes[1,0].containers[0])
Which displays this:
I tried adding the following to the bar_label line:
i.bar_label(axes[1,0].containers["$",0, "K"])
That error'd out however. Is this possible?
