title: Create a dictionary of bin values with different bin sizes - python
body: <p>I would like to create a dictionary of bin values with different bin sizes and increments. For example,</p>
  
  <pre><code>Starting increment is 5, through 10 (e.g. 0-5, 6-10)
  Then, increments of 10, through 100 (e.g. 11-20, 21-30...91-100)
  Then increments of 25, through 200 (e.g. 101-125, 126-150...176-200)
  </code></pre>
  
  <p>In a dictionary,</p>
  
  <pre><code>bin_dict = {0-10 :[0-5, 6-10], 10-100:[11-20, 21-30, ...91-100], 100-200:[101-125, 126-150..]}
  </code></pre>
  
  <p>I tried the following code:</p>
  
  <pre><code>def create_bin_ranges(bn_val):
      ## Create a list of bin ranges.
      dict_bin_ranges = {}
      list_bin_ranges = []
  
      for i in bn_val:
          step = i
          bin_range = np.arange(0, step+i, step)
          list_bin_ranges.append(bin_range)
          dict_bin_ranges[i] = list_bin_ranges
      return dict_bin_ranges
  </code></pre>
  
  <p>Result I get: (This is not what I want)</p>
  
  <pre><code>values = create_bin_ranges([5,10,100])
  print(values)
  &gt;&gt; {5: [array([0, 5]), array([ 0, 10]), array([  0, 100])],
     10: [array([0, 5]), array([ 0, 10]), array([  0, 100])],
     100: [array([0, 5]), array([ 0, 10]), array([  0, 100])]}
  </code></pre>
  
  <p>I am stuck, any suggestion or help would be great. </p>