df = pd.DataFrame({'A': np.random.rand(2), 'B': np.random.rand(2)}, index=['value1', 'value2']) ax = df.plot.bar() for container in ax.containers: ax.bar_label(container)