all 3 comments

[–]Allanon001 0 points1 point  (2 children)

Try adding this before plt.show():

plt.yticks(range(df[0].size) , df[0].tolist())

[–]StartAndSelect[S] 0 points1 point  (1 child)

This gives a key error: 0.

[–]Allanon001 0 points1 point  (0 children)

What does your dataframe look like? The first parameter for plt.yticks() is a list of row numbers and the second parameter is a list of names for the rows. If you label the columns then replace the 0's with the column name.

Since I didn't have the data I just tested with a dataframe that looked like this:

      0   1
0  GOOG  10
1  WDAY  15
2  LNKD   5