ataFrame</span>
<span class="sd">    &quot;&quot;&quot;</span>
    <span class="c1"># Can&#39;t have both log returns only and price only</span>
    <span class="k">if</span> <span class="n">lg_only</span><span class="p">:</span>
        <span class="k">assert</span> <span class="n">lg_only</span> <span class="o">!=</span> <span class="n">price_only</span>

    <span class="k">if</span> <span class="n">price_only</span><span class="p">:</span>
        <span class="k">assert</span> <span class="n">lg_only</s