 class="o">.</span><span class="n">argsort</span><span class="p">(</span><span class="n">hbincenters</span><span class="p">)</span>
        <span class="k">if</span> <span class="nb">isinstance</span><span class="p">(</span><span class="n">bin_labels</span><span class="p">,</span><span class="nb">list</span><span class="p">)</span> <span class="o">|</span> <span class="nb">isinstance</span><span class="p">(</span><span class="n">bin_labels</span><span class="p">,</span><span class="n">np</span><span class="