n class="sd">    :rtype:                 pd.DataFrame</span>
<span class="sd">    &quot;&quot;&quot;</span>
    <span class="c1"># The half live span to calculate the EWMA with</span>
    <span class="n">hlf_dict</span> <span class="o">=</span> <span class="p">{</span><span class="s2">&quot;week&quot;</span><span class="p">:</span> <span class="mi">5</span><span class="p">,</span> <span class="s2">&quot;month&quot;</span><span class="p">:</span> <span class="mi">22</span><span class="p">,</span> <span class