Skip to content

examples/us_budgetary_impact.py:38 prints full dataset object #330

@vahid-ahmadi

Description

@vahid-ahmadi

examples/us_budgetary_impact.py:38 contains:

print(f"  Loaded: {dataset}")

PolicyEngineUSDataset's __repr__/__str__ dumps every underlying dataframe to stdout, which floods the example output.

Replace with something more concise, e.g.:

print(f"  Loaded: {dataset.name} ({len(dataset.data.person):,} people)")

Reported in the discussion on #264.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions