how to plotting horizontal bar on matplotlib
import matplotlib.pyplot as plt
data = [5., 25., 50., 20.]
plt.barh(range(len(data)), data)
plt.show()
how to plotting horizontal bar on matplotlib
import matplotlib.pyplot as plt
data = [5., 25., 50., 20.]
plt.barh(range(len(data)), data)
plt.show()
horizontal bar plot python
import seaborn as sns
sns.barplot(data=df, orient = 'h')
horizontal bar plot
eg1
dataframe['col'].plot.barh()
plt.show()
#eg2 series horizontal bar
series.plot.barh()
#eg3
plt.barh(df['col'],df['col'])
plt.show()
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us