n class="n">universe_dict</span></div>


<div class="viewcode-block" id="clean_data"><a class="viewcode-back" href="../../preprocessing.html#Foresight.preprocessing.clean_data">[docs]</a><span class="k">def</span> <span class="nf">clean_data</span><span class="p">(</span><span class="n">df</span><span class="p">,</span> <span class="n">n_std</span><span class="o">=</span><span class="mi">20</span><span class="p">):</span>
    <span class="sd">&quot;&quot;&quot;Removes any outliers that are further than a ch