From 5040b26c9bda6f2f1b3bf0332053087d52cf7a05 Mon Sep 17 00:00:00 2001 From: andersonfrailey Date: Fri, 18 Jun 2021 10:09:39 -0400 Subject: [PATCH] Fix benefits growth rate bug --- puf_stage1/benefit_growth_rates.csv | 3 ++- puf_stage1/growfactors.csv | 2 +- tests/test_growfactors.py | 2 ++ 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/puf_stage1/benefit_growth_rates.csv b/puf_stage1/benefit_growth_rates.csv index 887c99f5..f37ff904 100644 --- a/puf_stage1/benefit_growth_rates.csv +++ b/puf_stage1/benefit_growth_rates.csv @@ -15,4 +15,5 @@ YEAR,ssi_participation_growth,ssi_benefit_growth,ssi_average_benefit,snap_partic 2027,0.043,0.3632,6694,-0.0524,-0.0487,1637,0.358,1.1168,23145,0.3878,1.3232,19163,0.2664,0.0644,11245,-0.0545,0.1502,8557,-0.040829318,0.003035629,800,-0.0891,0.425,5907,-0.135198968,-0.114219344,7856 2028,0.043,0.3632,6694,-0.0524,-0.0487,1637,0.358,1.1168,23145,0.3878,1.3232,19163,0.2664,0.0644,11245,-0.0545,0.1502,8557,-0.040829318,0.003035629,800,-0.0891,0.425,5907,-0.135198968,-0.114219344,7856 2029,0.043,0.3632,6694,-0.0524,-0.0487,1637,0.358,1.1168,23145,0.3878,1.3232,19163,0.2664,0.0644,11245,-0.0545,0.1502,8557,-0.040829318,0.003035629,800,-0.0891,0.425,5907,-0.135198968,-0.114219344,7856 -2030,0.043,0.3632,6694,-0.0524,-0.0487,1637,0.358,1.1168,23145,0.3878,1.3232,19163,0.2664,0.0644,11245,-0.0545,0.1502,8557,-0.040829318,0.003035629,800,-0.0891,0.425,5907,-0.135198968,-0.114219344,7856 \ No newline at end of file +2030,0.043,0.3632,6694,-0.0524,-0.0487,1637,0.358,1.1168,23145,0.3878,1.3232,19163,0.2664,0.0644,11245,-0.0545,0.1502,8557,-0.040829318,0.003035629,800,-0.0891,0.425,5907,-0.135198968,-0.114219344,7856 +2031,0.043,0.3632,6694,-0.0524,-0.0487,1637,0.358,1.1168,23145,0.3878,1.3232,19163,0.2664,0.0644,11245,-0.0545,0.1502,8557,-0.040829318,0.003035629,800,-0.0891,0.425,5907,-0.135198968,-0.114219344,7856 \ No newline at end of file diff --git a/puf_stage1/growfactors.csv b/puf_stage1/growfactors.csv index 2d0307a9..9f5f8b1c 100644 --- a/puf_stage1/growfactors.csv +++ b/puf_stage1/growfactors.csv @@ -19,4 +19,4 @@ YEAR,ATXPY,ASCHF,ABOOK,ACPIU,ACPIM,AWAGE,ASCHCI,ASCHCL,ASCHEI,ASCHEL,AINTS,ADIVS 2028,1.038383,1.02362,1.022127,1.024452,1.014546,1.02904,1.03136,1.031371,1.022205,1.022212,1.095794,1.028537,1.012199,1.037933,1.05698,1.045541,1.030942,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0 2029,1.037542,1.028855,1.019018,1.024521,1.014725,1.028278,1.02934,1.029383,1.018939,1.018956,1.085762,1.033534,1.018497,1.03772,1.058625,1.044504,1.031131,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0 2030,1.037758,1.030567,1.018617,1.023934,1.014512,1.027532,1.02892,1.028932,1.018695,1.018667,1.087659,1.038078,1.022205,1.040242,1.069383,1.044572,1.03133,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0 -2031,1.040629,1.029454,1.020281,1.023375,1.014229,1.028783,1.03078,1.030773,1.020267,1.020252,1.079808,1.040456,1.025803,1.04464,1.122917,1.047226,1.03151,,,,,,,, +2031,1.040629,1.029454,1.020281,1.023375,1.014229,1.028783,1.03078,1.030773,1.020267,1.020252,1.079808,1.040456,1.025803,1.04464,1.122917,1.047226,1.03151,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0 diff --git a/tests/test_growfactors.py b/tests/test_growfactors.py index 2d6b95d1..f39906d2 100644 --- a/tests/test_growfactors.py +++ b/tests/test_growfactors.py @@ -26,3 +26,5 @@ def test_growfactor_values(growfactors): if fname != "YEAR": assert growfactors[fname].min() >= min_value assert growfactors[fname].max() <= max_value + + assert growfactors.isnull().sum().sum() == 0