<span class="p">(</span><span class="n">cmd</span><span class="p">)</span>

        <span class="c1"># check if we need to set color</span>
        <span class="k">if</span> <span class="s2">&quot;color&quot;</span> <span class="ow">in</span> <span class="n">r</span> <span class="ow">and</span> <span class="n">pd</span><span class="o">.</span><span class="n">notnull</span><span class="p">(</span><span class="n">r</span><span class="p">[</span><span class="s2">&quot;color&quot;</span><span class="p">]):</spa