0

I can't seem to find a simple one liner that includes everything I need for my plot. Looking for some guidance here -

I have a simple one line of code for a bar plot:

df[df.day=='Friday'].groupby('day').agg('amount').mean().plot(kind='bar',x='day',y='amount')

Which works well, but I'd like to add labels to the bar chart. So each bar shows the mean value for that day. Can I do this annotation within this one line?

paranormaldist
  • 489
  • 5
  • 16

0 Answers0