Stairs.
hist
(lower=-inf, upper=inf, bin_edges=None, closed='left')¶Calculates a histogram for the corresponding step function values
Parameters: |
|
---|---|
Returns: | A Series, with a |
Return type: |
|
Examples
>>> s1.plot()
>>> s1.hist()
[-1, 0) 0.25
[0, 1) 0.25
[1, 2) 0.50
dtype: float64
>>> s1.hist(closed='right')
(-2, -1] 0.25
(-1, 0] 0.25
(0, 1] 0.50
dtype: float64
>>> s1.hist(2, 4.5)
[-1, 0) 0.2
[0, 1) 0.4
[1, 2) 0.4
dtype: float64
>>> s1.hist(bin_edges=(-1,1,3))
[-1, 1) 0.5
[1, 3) 0.5
dtype: float64
>>> s1.hist(bin_edges=(-1, 1))
[-1, 1) 0.5
dtype: float64