an class="p">]]</span>
        <span class="k">if</span> <span class="n">lag</span> <span class="o">==</span> <span class="mi">1</span><span class="p">:</span>
            <span class="n">df_full</span><span class="p">[</span><span class="n">col</span><span class="o">.</span><span class="n">replace</span><span class="p">(</span><span class="s1">&#39;price_&#39;</span><span class="p">,</span> <span class="s2">&quot;&quot;</span><span class="p">)]</span> <span class="o">=</span> <span class="n">log_returns</s