【发布时间】:2019-12-27 10:42:44
【问题描述】:
代码:
np.histogram(df['columnforhistogram'], bins=(np.arange(start=0, stop=2000, step=25)), density=True)
plt.xlabel("Column")
plt.ylabel('Bins')
plt.show()
我想要的输出:
I want a histogram with bins starting from 0 , ending at 2000 and at an
interval of 25.'
X-axis should have values 0,25,50 and so on...
我得到的输出
A blank histogram with values in x-axis from 0 to 1 with interval of 0.2
(0,0.2,0.4 ..... 1 on both x - axis and y - axis)
【问题讨论】:
-
我无法重现您的错误,请发帖stackoverflow.com/help/minimal-reproducible-example
标签: python pandas histogram unordered bins