UK: blank FRS tenure silently becomes RENT_PRIVATELY

Đang mở
#1,716 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
45/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
python
Lĩnh vực
data

Hướng nghiên cứu

Start at uk_runtime/frs_spine.py lines 1868-1869, where _map_dictionary_codes maps blank ptentyp2 to RENT_PRIVATELY, and read TENURE_MAP. Compare with how spi_housing_shell imputes tenure for SPI households. Done means blank-tenure rows are counted in the build receipt and either imputed or explicitly flagged rather than defaulted to private renting.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

uk_runtime/frs_spine.py:1868-1869 maps a blank FRS tenure code (ptentyp2) to RENT_PRIVATELY:

pe_household["tenure_type"] = _map_dictionary_codes(
    household, "ptentyp2", TENURE_MAP, blank="RENT_PRIVATELY"
)

Private renting is also policyengine-uk's enum default, so a user can't tell a household with a reported tenure from one that defaulted. An external user asked whether records "take the default (renting privately)".

Asks:

  • Count these rows in a build receipt.
  • If there are more than a handful, impute tenure for them as spi_housing_shell does for SPI households, rather than defaulting to private renting, which affects LHA, Housing Benefit and housing costs.

Drafted with AI assistance and checked against main at 8740c6f.

Ngôn ngữ chính
Python
Star
0
Fork
6
Merge trung bình
1 ngày 17 giờ
Pull request đã merge (30 ngày)
190

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của PolicyEngine/microcosm

Tất cả issue của PolicyEngine/microcosm

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.