Code:
np.histogram(df['columnforhistogram'], bins=(np.arange(start=0, stop=2000, step=25)), density=True)
plt.xlabel("Column")
plt.ylabel('Bins')
plt.show()
Output I want:
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...
Output I am getting
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)