pan class="nb">range</span><span class="p">(</span><span class="n">nhbins</span><span class="p">)]</span>
    <span class="k">elif</span> <span class="nb">isinstance</span><span class="p">(</span><span class="n">bin_labels</span><span class="p">,</span><span class="nb">str</span><span class="p">):</span>
        <span class="n">bin_labels</span> <span class="o">=</span> <span class="p">[</span><span class="n">bin_labels</span> <span class="o">+</span> <span class="s1">&#39;</span><span class="si">{:1.0f}</s