 class="sd">    Compresses a series to blocks of `compress_steps`</span>

<span class="sd">    Args:</span>
<span class="sd">        series: series as a list of dictionaries</span>
<span class="sd">        compress_steps: number of steps to compress</span>

<span class="sd">    Returns:</span>

<span class="sd">    &quot;&quot;&quot;</span>
    <span class="n">res</span> <span class="o">=</span> <span class="p">[]</span>
    <span class="k">for</span> <span class="n">d</span> <span class="ow">in</span> <spa