From 89c10a5050fda5ae4caa603c85467af470aa1054 Mon Sep 17 00:00:00 2001 From: Vahid Ahmadi Date: Fri, 1 May 2026 11:04:15 +0100 Subject: [PATCH] Replace verbose dataset print with concise summary Fixes #330 The previous print(f" Loaded: {dataset}") relied on the dataset's default __repr__, which dumps every entity DataFrame to stdout. Print just the name and person count instead. Co-Authored-By: Claude Opus 4.7 (1M context) --- examples/us_budgetary_impact.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/us_budgetary_impact.py b/examples/us_budgetary_impact.py index f99df6d1..b9091594 100644 --- a/examples/us_budgetary_impact.py +++ b/examples/us_budgetary_impact.py @@ -35,7 +35,7 @@ def main(): data_folder="./data", ) dataset = datasets[f"enhanced_cps_2024_{year}"] - print(f" Loaded: {dataset}") + print(f" Loaded: {dataset.name} ({len(dataset.data.person):,} people)") # ── Step 2: Define a reform ── # Example: double the standard deduction for single filers