I ve got the following code,
makeprice=df1.groupby([\'CarMake\']).price.agg([\'mean\']) makeprice.plot.bar() plt.xlabel(\'Car Make\') plt.ylabel(\'Price\') p