<div dir="ltr"><div dir="ltr">Hi Edouard,</div><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Sep 18, 2019 at 11:29 AM Edouard Goudenhoofdt <<a href="mailto:egouden@gmail.com">egouden@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Dear scipy developers,</div><div><br></div><div>One could use scipy.stats.binned_statistic_dd for the same sample points but for values available at different times.</div><div>Currently this involves the computation of the bin numbers every time the function is called.</div><div></div><div>Therefore I would like to add an optional argument "binnumbers" to skip this step when calling the function again.</div></div></blockquote><div><br></div><div>That seems sensible. Could you check that creating the bin numbers really takes the majority of the time? There's also a fair amount of input validation that shouldn't be skipped even when a new `binnumbers` is passed in. If that is the case, sending a PR with a benchmark would be very welcome.</div><div><br></div><div>Cheers,</div><div>Ralf</div><div><br></div></div></div>