es in the time dimension,</span>
<span class="sd">    with non-missing data returning zero. Time is measured from the time the</span>
<span class="sd">    data first started being missing to when the data first starts being not missing</span>
<span class="sd">    .</span>

<span class="sd">    Parameters</span>
<span class="sd">    ----------</span>

<span class="sd">    ts : :class:`DataFrame &lt;pandas:pandas.DataFrame&gt;`</span>

<span class="sd">    Returns</span>
<span class="sd">    -------</span>
<s