add values to pandas plot

Solutions on MaxInterview for add values to pandas plot by the best coders in the world

showing results for - "add values to pandas plot"
Abrianna
08 Jan 2019
1df = pd.DataFrame({'A': np.random.rand(2), 'B': np.random.rand(2)}, index=['value1', 'value2'])
2ax = df.plot.bar()
3
4for container in ax.containers:
5    ax.bar_label(container)
6
similar questions
queries leading to this page
add values to pandas plot