Skip to content

Preserve nullable SPM statuses in wrapper summaries and JSON #518

Description

@MaxGhenis

Nullable Supplemental Poverty Measure (SPM) status outputs must retain the difference between an observed nonpoor population and an empty measurement universe.

The wrapper currently returns a zero poverty rate when eligible weighted population is zero. Its generic means can return NaN or raise for zero weights, household scalar conversion preserves nonfinite values, and generic upward entity mapping can turn missing status flags into measured zero.

The bounded fix should return null rates/means for empty eligible denominators, preserve nullable poverty DataFrame exports and strict household JSON, and reject undefined upward/group-to-group mapping of the five SPM status aliases in measured-variable and filter paths. Native summaries and projection to people remain supported.

Validate with synthetic weighted data and actual wrapper mapping. This issue does not change dependency pins, source/year/membership inference, outside-universe resource valuation, certified data, or managed-runtime qualification. Canonical bundle/loading/release work remains tracked in #515.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions