Skip to content

Replace verbose dataset print in US budgetary impact example#331

Open
vahid-ahmadi wants to merge 1 commit intomainfrom
fix-us-budgetary-impact-print
Open

Replace verbose dataset print in US budgetary impact example#331
vahid-ahmadi wants to merge 1 commit intomainfrom
fix-us-budgetary-impact-print

Conversation

@vahid-ahmadi
Copy link
Copy Markdown

Fixes #330

Summary

  • The line print(f\" Loaded: {dataset}\") in examples/us_budgetary_impact.py:38 relied on PolicyEngineUSDataset's default __repr__, which dumps every entity DataFrame to stdout when the example runs.
  • Replaced with a concise dataset.name + person count summary.

Test plan

  • python examples/us_budgetary_impact.py prints a single line for the load step instead of full DataFrame contents.

🤖 Generated with Claude Code

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) <noreply@anthropic.com>
@vahid-ahmadi vahid-ahmadi requested a review from anth-volk May 6, 2026 11:07
@vahid-ahmadi vahid-ahmadi self-assigned this May 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

examples/us_budgetary_impact.py:38 prints full dataset object

1 participant