ss="n">TimeDelta</span><span class="p">(</span><span class="n">window_size</span><span class="p">)</span>
        <span class="k">if</span> <span class="ow">not</span> <span class="nb">isinstance</span><span class="p">(</span><span class="n">window_period</span><span class="p">,</span> <span class="n">TimeDelta</span><span class="p">):</span>
            <span class="n">window_period</span> <span class="o">=</span> <span class="n">TimeDelta</span><span class="p">(</span><span class="n">window_period</span><