Skip to content

Commit

Permalink
use values for where
Browse files Browse the repository at this point in the history
  • Loading branch information
jdebacker committed Nov 21, 2023
1 parent 24cae45 commit 90ab1c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion taxcalc/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -586,7 +586,7 @@ def count_gt_zero(dframe, col_name, tolerance=0.001):
quotient = np.divide(
diff_table['atinc2'].values, diff_table['atinc1'].values,
out=np.zeros_like(diff_table['atinc2'].values),
where=diff_table['atinc1'] != 0)
where=diff_table['atinc1'].values != 0)
diff_table['pc_aftertaxinc'] = np.where(
diff_table['atinc1'].values == 0., np.nan, 100 * (quotient - 1))
# delete intermediate Pandas DataFrame objects
Expand Down

0 comments on commit 90ab1c0

Please sign in to comment.