Skip to content

Commit e8284bb

Browse files
Quick fix on SPI code
1 parent b693e54 commit e8284bb

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

  • policyengine_uk_data/datasets

policyengine_uk_data/datasets/spi.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ def create_spi(
2222
household["household_weight"] = df.FACT
2323
person["dividend_income"] = df.DIVIDENDS
2424
person["gift_aid"] = df.GIFTAID
25-
person["region"] = (
25+
household["region"] = (
2626
df.GORCODE.map(
2727
{
2828
1: "NORTH_EAST",
@@ -39,9 +39,11 @@ def create_spi(
3939
12: "NORTHERN_IRELAND",
4040
}
4141
)
42-
.fillna("UNKNOWN")
43-
.astype("S")
42+
.fillna("SOUTH_EAST")
4443
)
44+
household["rent"] = 0
45+
household["tenure_type"] = "OWNED_OUTRIGHT"
46+
household["council_tax"] = 0
4547
person["savings_interest_income"] = df.INCBBS
4648
person["property_income"] = df.INCPROP
4749
person["employment_income"] = df.PAY + df.EPB

0 commit comments

Comments
 (0)