add values to pandas plot

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

we are a community of more than 2 million smartest coders
registration for
employee referral programs
are now open
get referred to google, amazon, flipkart and more
register now
  
pinned-register now
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