Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

add values to pandas plot

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)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #add #values #pandas #plot
ADD COMMENT
Topic
Name
3+8 =