I ve got the following code,
makeprice=df1.groupby(['CarMake']).price.agg(['mean'])
makeprice.plot.bar()
plt.xlabel('Car Make')
plt.ylabel('Price')
plt.title("Mean Car Prices")
plt.show()
I ve tried cmap, but for some reason it gives me empty chart, when listing all colours i.e. color=['black','red...] it would only take first one.
Also is there any way to change the name of the legend bar to something else?