</span> <span class="nf">column_gap_count</span><span class="p">(</span><span class="n">ser</span><span class="p">):</span>
        <span class="n">s</span> <span class="o">=</span> <span class="n">ser</span><span class="o">.</span><span class="n">index</span><span class="o">.</span><span class="n">to_series</span><span class="p">()</span>
        <span class="n">tsout</span> <span class="o">=</span> <span class="n">ser</span><span class="o">.</span><span class="n">fillna</span><span class="p">(</span><span