heck index dtype, same as index.dtype == &quot;object&quot;</span>
</span><span id="L-28"><a href="#L-28"><span class="linenos">28</span></a>    <span class="k">if</span> <span class="n">is_object_dtype</span><span class="p">(</span><span class="n">prices</span><span class="o">.</span><span class="n">index</span><span class="p">):</span>
</span><span id="L-29"><a href="#L-29"><span class="linenos">29</span></a>        <span class="n">prices</span><span class="o">.</span><span class="n">index</span> <span cl