1import matplotlib.pyplot as plt
2
3data = [5., 25., 50., 20.]
4plt.barh(range(len(data)), data)
5plt.show()
1eg1
2
3dataframe['col'].plot.barh()
4plt.show()
5
6#eg2 series horizontal bar
7
8series.plot.barh()
9
10#eg3
11
12plt.barh(df['col'],df['col'])
13plt.show()
14
15
16