e</span><span class="p">:</span>
            <span class="n">row_order</span> <span class="o">=</span> <span class="n">df</span><span class="o">.</span><span class="n">index</span>

        <span class="k">if</span> <span class="n">col_cluster</span><span class="p">:</span>
            <span class="n">col_order</span> <span class="o">=</span> <span class="n">compute_order</span><span class="p">(</span><span class="n">df</span><span class="o">.</span><span class="n">transpose</span><span class="p">(),</span>