Skip to content

Commit

Permalink
avoid pandas deprecation
Browse files Browse the repository at this point in the history
  • Loading branch information
jdebacker committed Jan 31, 2024
1 parent e0f9b85 commit 5337ce0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion iot/inverse_optimal_tax.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ def compute_mtr_dist(
)
binned_data = pd.DataFrame(
data[["mtr", income_measure, "z_bin", weight_var]]
.groupby(["z_bin"])
.groupby(["z_bin"], observed=False)
.apply(lambda x: wm(x[["mtr", income_measure]], x[weight_var]))
)
# make column 0 into two columns
Expand Down

0 comments on commit 5337ce0

Please sign in to comment.