o">.</span><span class="n">ndarray</span><span class="p">):</span>
            <span class="n">bin_labels</span> <span class="o">=</span> <span class="n">bin_labels</span><span class="p">[</span><span class="n">idx</span><span class="p">]</span>
        <span class="n">hbincenters</span> <span class="o">=</span> <span class="n">hbincenters</span><span class="p">[</span><span class="n">idx</span><span class="p">]</span>
        <span class="n">nhbins</span> <span class="o">=</span> <span class="n">hbincenter