n><span class="o">=</span><span class="s1">&#39;spearman&#39;</span><span class="p">,</span> <span class="n">plotting</span><span class="o">=</span><span class="kc">False</span><span class="p">):</span>
<span class="w">    </span><span class="sd">&quot;&quot;&quot;This function takes a time series and uses AC to find the optimum</span>
<span class="sd">    delay based on the correlation being less than a specified cutoff (default  is 1/e, which is approximately 0.36788).</span>

<span class="sd">    Args:</