lass="sd">    Returns</span>
<span class="sd">    -------</span>
<span class="sd">    result : :class:`DataFrame &lt;pandas:pandas.DataFrame&gt;`</span>
<span class="sd">        A new regular time series with the same freq as the argument</span>
<span class="sd">        holding the distance of good/bad data.</span>

<span class="sd">    &quot;&quot;&quot;</span>
    <span class="n">si</span> <span class="o">=</span> <span class="n">ts</span><span class="o">.</span><span class="n">index</span><span class="o"