Answers for "how to plot horizontal bar with pandas and ploty"

1

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()
Posted by: Guest on June-13-2020
2

pandas series plot horizontal bar

import matplotlib.pyplot as plt
series.plot(kind='barh')
plt.show()
Posted by: Guest on September-15-2021

Code answers related to "how to plot horizontal bar with pandas and ploty"

Python Answers by Framework

Browse Popular Code Answers by Language