python: using numpy.histogram
Question: i am using this:

<http://docs.scipy.org/doc/numpy/reference/generated/numpy.histogram.html>

i have an list `a` that i want to use like this:

    
    
    numpy.histogram(a,bins=[0.1,0.2,0.3,0.4...6], range=[0:6])
    

  1. how do i include a set of bins 0.1 through 6 in 0.1 intervals?
  2. how do i specify a range of 0 through 6?


Answer: Perhaps you are looking for `np.linspace(0,6,num=61)` or
`np.arange(0,6.1,0.1)`:

    
    
    import numpy as np
    a=np.random.random(100)*6
    hist=np.histogram(a,bins=np.linspace(0,6,num=61))
    

