Even though I used bin my dataframe is not getting split into interval. Its gets split into a list.
Is it because of my version? I use Spyder Python-3.6
pressures = df.Pressure.value_counts(bins=10,dropna=True).index.values
pressures Out[505]: array([ 99.0252926, 112.15208 , 138.27504 ,
157.86726 ,
151.33652 , 144.80578 , 131.7443 , 125.21356 ,
118.68282 , 105.62134 ])
pressures[0].left Traceback (most recent call last):
File "<ipython-input-507-e9fa63a8a12f>", line 1, in <module>
pressures[0].left
AttributeError: 'numpy.float64' object has no attribute 'left'
I would like to get it in form of an interval