Creating a grouped sorted bar plot using pandas
问题 I have been trying to create a grouped sorted bar plot such as this one http://chrisalbon.com/python/matplotlib_grouped_bar_plot.html from a DataFrame created from dict by doing: food = {'Apples as fruit': 4.68, 'Berries': 7.71, 'Butter': 12.73, 'Cheese': 4.11, 'Dairy, Other': 4.97} dframe = pd.DataFrame([food]) dframe.plot(kind='bar') Apples as fruit Berries Butter Cheese Dairy, Other 0 4.68 7.71 12.73 4.11 4.97 The first group should have Apples and Berries and the second should have Butter