title: scipy binned_statistic_dd reverse indexing?
body: <p><a href="https://www.geeksforgeeks.org/scipy-stats-binned_statistic_dd-function-python/" rel="nofollow noreferrer">https://www.geeksforgeeks.org/scipy-stats-binned_statistic_dd-function-python/</a></p>
  <p><code>binned_statistic_dd</code> return mean/count/etc... value in each grid cell.
  I'd want concatenate each original point in one cell with the retuned mean value.
  How to reverse indexing this mean values to original points.?</p>
  <pre><code>points = [[x_c1, y_c1], [x_c1, y_c1], [x_c2, y_c2]...]
  mean_values= [m1, m2, ...]
  result = [[x_c1, y_c1, m1], [x_c1, y_c1, m1], [x_c2, y_c2, m2]
  </code></pre>
  <p>binned_statistic_dd</p>