Skip to content

Commit

Permalink
Deploying to gh-pages from @ d012700 🚀
Browse files Browse the repository at this point in the history
  • Loading branch information
jdebacker committed Feb 3, 2024
1 parent 0e4bbd8 commit fc94b3d
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion _modules/iot/inverse_optimal_tax.html
Original file line number Diff line number Diff line change
Expand Up @@ -468,7 +468,7 @@ <h1>Source code for iot.inverse_optimal_tax</h1><div class="highlight"><pre>
<span class="p">)</span>
<span class="n">binned_data</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="n">data</span><span class="p">[[</span><span class="s2">&quot;mtr&quot;</span><span class="p">,</span> <span class="n">income_measure</span><span class="p">,</span> <span class="s2">&quot;z_bin&quot;</span><span class="p">,</span> <span class="n">weight_var</span><span class="p">]]</span>
<span class="o">.</span><span class="n">groupby</span><span class="p">([</span><span class="s2">&quot;z_bin&quot;</span><span class="p">])</span>
<span class="o">.</span><span class="n">groupby</span><span class="p">([</span><span class="s2">&quot;z_bin&quot;</span><span class="p">],</span> <span class="n">observed</span><span class="o">=</span><span class="kc">False</span><span class="p">)</span>
<span class="o">.</span><span class="n">apply</span><span class="p">(</span><span class="k">lambda</span> <span class="n">x</span><span class="p">:</span> <span class="n">wm</span><span class="p">(</span><span class="n">x</span><span class="p">[[</span><span class="s2">&quot;mtr&quot;</span><span class="p">,</span> <span class="n">income_measure</span><span class="p">]],</span> <span class="n">x</span><span class="p">[</span><span class="n">weight_var</span><span class="p">]))</span>
<span class="p">)</span>
<span class="c1"># make column 0 into two columns</span>
Expand Down
14 changes: 7 additions & 7 deletions content/example/IOT_example.html

Large diffs are not rendered by default.

Loading

0 comments on commit fc94b3d

Please sign in to comment.