quot;columns&quot;</span><span class="p">):</span>
        <span class="k">return</span> <span class="n">ts</span><span class="o">.</span><span class="n">apply</span><span class="p">(</span><span class="n">column_gap_count</span><span class="p">,</span> <span class="n">axis</span><span class="o">=</span><span class="mi">0</span><span class="p">,</span> <span class="n">result_type</span><span class="o">=</span><span class="s2">&quot;broadcast&quot;</span><span class="p">)</span><span class="o">.</span><span 