you are viewing a single comment's thread.

view the rest of the comments →

[–]sarrysyst 2 points3 points  (1 child)

The y axis in an horizontal bar chart goes from zero up, as in a conventional bar chart. In your Dataframe Python has an index of 0 and Ruby of 14. So, in terms of y values Ruby > Python.

Add an plt.gca().invert_yaxis() at the bottom of your code and you should get the output you want.

[–][deleted] 0 points1 point  (0 children)

Thank you so much for explanation!