---</span>

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

<span class="sd">    state : `str` one of &#39;gap&#39;|&#39;good&#39;|&#39;both&#39;</span>
<span class="sd">        State to count. If state is gap, block size of missing data are counted</span>
<span class="sd">        and reported for time points in the gap (every point in a given gap will</span>
<span class="sd">        receive the same value). Non miss