Skip to content

Commit 1dca8fd

Browse files
Add PUF datasets to outputs
1 parent 296d62c commit 1dca8fd

2 files changed

Lines changed: 4 additions & 6 deletions

File tree

policyengine_us_data/datasets/puf/puf.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -357,11 +357,7 @@ def generate(self):
357357

358358
i = 0
359359
self.earn_splits = []
360-
for _, row in tqdm(
361-
puf.iterrows(),
362-
total=len(puf),
363-
desc="Constructing hierarchical PUF",
364-
):
360+
for _, row in puf.iterrows():
365361
i += 1
366362
exemptions = row["exemptions_count"]
367363
tax_unit_id = row["household_id"]
@@ -517,3 +513,5 @@ class PUF_2024(PUF):
517513

518514
if __name__ == "__main__":
519515
PUF_2015().generate()
516+
PUF_2021().generate()
517+
PUF_2024().generate()

policyengine_us_data/utils/loss.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ def build_loss_matrix(dataset: type, time_period):
236236

237237
loss_matrix["irs/negative_household_market_income_count"] = (
238238
market_income < 0
239-
)
239+
).astype(float)
240240
targets_array.append(3e6)
241241

242242
# Healthcare spending by age

0 commit comments

Comments
 (0)