Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

multiyear_diagnostic_table utils function in test_pufcsv.py #864

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions taxcalc/tests/test_pufcsv.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,15 +42,15 @@ def test_sample():
clp = Policy()
puf = Records(data=PUFCSV_PATH)
calc = Calculator(policy=clp, records=puf)
adt = calc.diagnostic_table(num_years=10)
adt = multiyear_diagnostic_table(calc, num_years=10)

# Sample sample dataset
clp2 = Policy()
tax_data_full = pd.read_csv(PUFCSV_PATH)
tax_data = tax_data_full.sample(frac=0.02)
puf_sample = Records(data=tax_data)
calc_sample = Calculator(policy=clp2, records=puf_sample)
adt_sample = calc_sample.diagnostic_table(num_years=10)
adt_sample = multiyear_diagnostic_table(calc_sample, num_years=10)

# Get the final combined tax liability for the budget period
# in the sample and the full dataset and make sure they are close
Expand Down