how to invert bar graph in pandas code example Example: change order of barh matplotlib ax = df.plot.barh() # or df.plot(), or similar ax.invert_yaxis()