"o">=</span> <span class="mi">1</span><span class="o">/</span><span class="n">fs</span>  <span class="c1"># calculates the time between each data point</span>
    <span class="n">N</span> <span class="o">=</span> <span class="nb">len</span><span class="p">(</span><span class="n">ts</span><span class="p">)</span>

    <span class="c1"># creates array for time data points to associate to time series</span>
    <span class="n">xf</span> <span class="o">=</span> <span class="n">np</span><span class="o">.</span>