       <span class="n">miss</span> <span class="o">=</span> <span class="n">ts_out</span><span class="p">[</span><span class="n">col</span><span class="p">]</span><span class="o">.</span><span class="n">isna</span><span class="p">()</span>
        <span class="k">if</span> <span class="n">to</span> <span class="o">==</span> <span class="s2">&quot;good&quot;</span><span class="p">:</span>
            <span class="n">ts_out</span><span class="o">.</span><span class="n">at</span><span class="p">[</span><span c