<spanid="api-date-index-formatter"></span><h1>api example code: date_index_formatter.py<aclass="headerlink" href="#api-example-code-date-index-formatter-py" title="Permalink to this headline">¶</a></h1>
<spanclass="n">r</span><spanclass="o">=</span><spanclass="n">r</span><spanclass="p">[</span><spanclass="o">-</span><spanclass="mi">30</span><spanclass="p">:]</span><spanclass="c1"># get the last 30 days</span>
<spanclass="c1"># first we'll do it the default way, with gaps on weekends</span>