>df</span><span class="o">.</span><span class="n">price</span><span class="o">.</span><span class="n">std</span><span class="p">())</span>

    <span class="c1"># Removing erroneous datapoints</span>
    <span class="n">df</span><span class="o">.</span><span class="n">loc</span><span class="p">[((</span><span class="n">df</span><span class="o">.</span><span class="n">price</span> <span class="o">&gt;</span> <span class="n">upper</span><span class="p">)</span> <span class="o">|</span> <span class="p">(</span