From cec83d74a3c2e3f14e5624f1182ed45e3eac6a4e Mon Sep 17 00:00:00 2001 From: jdebacker Date: Tue, 21 Nov 2023 10:21:33 -0500 Subject: [PATCH] fix where --- taxcalc/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/taxcalc/utils.py b/taxcalc/utils.py index 8682c018b..4da525171 100644 --- a/taxcalc/utils.py +++ b/taxcalc/utils.py @@ -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