I have some code to open an excel file as dataframe. Based on this, a barh is plotted. However, I 'am unable to show the values in the bars. The excel has column headers which are changing from file to file which are shown in the legend.
the dataframe looks like this:
40+ 50+ 60+
e .35 .45 .28
n .28 .52 .27
tried ax.annotate
many thanks
"""code"""
import pandas as pd
import numpy as np
from pandas import ExcelWriter
from pandas import ExcelFile
df = pd.read_excel('C://1/table/c.xlsx', sheet_name='Sheet1')
print (df)
ax = df.plot.barh(width=0.9, fontsize='xx-large', figsize=(20,20), color=
['#a6979C', '#BFB0BA', '#D9CCD9', '#bebabf', '#eae4f2'] )
ax.legend(bbox_to_anchor=(1,1),loc='best', fontsize='30')
expected result: Horizontal bars with the values in the bars