I want to get the distribution of a column. The ranges are prices and the int is the number of sales within that range.
df1=df['column'].value_counts(bins=15, sort=False)
(-2,000.0000, 42,000.0000]
103
(42,000.0000, 83,000.0000]
880
(83,000.0000, 125,000.0000]
649
(125,000.0000, 167,000.0000]
390
(167,000.0000, 208,000.0000]
257
(208,000.0000, 250,000.0000]
211
(250,000.0000, 292,000.0000]
158
(292,000.0000, 333,000.0000]
105
I'm positive there are no values under zero within the df.column but for some reason in the example above the range starts at -2000. Is there a way to achieve the same result without negative numbers in my interval i.e with the min of the df.column as the left side of the first interval ?