class="p">)</span>

 <span class="c1"># Create tax rates data</span>
 <span class="n">tax_rates</span> <span class="o">=</span> <span class="n">pd</span><span class="o">.</span><span class="n">DataFrame</span><span class="p">([</span>
     <span class="p">{</span>
         <span class="s1">&#39;gain_type&#39;</span><span class="p">:</span> <span class="s1">&#39;short_term&#39;</span><span class="p">,</span>
         <span class="s1">&#39;federal_rate&#39;</span><span class="p">:</span> <span class="mf">0.35