>t</span><span class="p">]</span> <span class="o">=</span> <span class="n">k</span>
            <span class="n">t</span> <span class="o">-=</span> <span class="mi">1</span>

        <span class="n">secondary</span> <span class="o">=</span> <span class="nb">set</span><span class="p">(</span><span class="bp">self</span><span class="o">.</span><span class="n">rename</span><span class="o">.</span><span class="n">keys</span><span class="p">())</span>

        <span class="c1"># Filter and sort transactions</span