policyengine-uk 2.39.0__py3-none-any.whl → 2.39.1__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,7 +2,8 @@ description: While this parameter is true, LHA rates are frozen in cash terms.
2
2
  values:
3
3
  2015-01-01: false
4
4
  2020-01-01: true
5
- 2024-01-01: false
5
+ 2023-12-31: false
6
+ 2024-01-01: true
6
7
  metadata:
7
8
  unit: bool
8
9
  label: LHA freeze
@@ -1,33 +1,37 @@
1
1
  description: Minimum income guarantee (basic amount) for Pension Credit
2
2
  SINGLE:
3
- 2015-04-06: 151.20
4
- 2016-04-06: 155.60
5
- 2017-04-06: 159.35
6
- 2018-04-06: 163.00
7
- 2019-04-06: 167.25
8
- 2020-04-06: 173.75
9
- 2021-04-06: 177.10
10
- 2022-04-01: 182.60
11
- 2023-04-01: 201.05
12
- 2024-04-01: 218.15
13
- 2025-04-01: 221.85
3
+ values:
4
+ 2015-04-06: 151.20
5
+ 2016-04-06: 155.60
6
+ 2017-04-06: 159.35
7
+ 2018-04-06: 163.00
8
+ 2019-04-06: 167.25
9
+ 2020-04-06: 173.75
10
+ 2021-04-06: 177.10
11
+ 2022-04-01: 182.60
12
+ 2023-04-01: 201.05
13
+ 2024-04-01: 218.15
14
+ 2025-04-01: 221.85
15
+ metadata:
16
+ uprating: gov.benefit_uprating_cpi
14
17
  COUPLE:
15
- 2015-04-06: 230.85
16
- 2016-04-06: 237.55
17
- 2017-04-06: 243.25
18
- 2018-04-06: 248.80
19
- 2019-04-06: 255.25
20
- 2020-04-06: 265.20
21
- 2021-04-06: 270.30
22
- 2022-04-01: 278.70
23
- 2023-04-01: 306.85
24
- 2024-04-01: 332.95
25
- 2025-04-01: 338.61
18
+ values:
19
+ 2015-04-06: 230.85
20
+ 2016-04-06: 237.55
21
+ 2017-04-06: 243.25
22
+ 2018-04-06: 248.80
23
+ 2019-04-06: 255.25
24
+ 2020-04-06: 265.20
25
+ 2021-04-06: 270.30
26
+ 2022-04-01: 278.70
27
+ 2023-04-01: 306.85
28
+ 2024-04-01: 332.95
29
+ 2025-04-01: 338.61
30
+ metadata:
31
+ uprating: gov.benefit_uprating_cpi
26
32
  metadata:
27
33
  period: week
28
- name: pc_min_guarantee
29
34
  label: Pension Credit minimum guarantee
30
- uprating: gov.benefit_uprating_cpi
31
35
  unit: currency-GBP
32
36
  reference:
33
37
  - title: The State Pension Credit Regulations 2002 reg. 6
@@ -298,14 +298,16 @@ ofwat:
298
298
  2022-01-01: 0.052
299
299
  2023-01-01: 0.092
300
300
  2024-01-01: 0.044
301
- 2025-01-01: 0.061
302
- 2026-01-01: 0.061
303
- 2027-01-01: 0.051
304
- 2028-01-01: 0.038
305
- 2029-01-01: 0.043
301
+ 2025-01-01: 0.260
302
+ 2026-01-01: 0.055
303
+ 2027-01-01: 0.046
304
+ 2028-01-01: 0.045
305
+ 2029-01-01: 0.045
306
306
  metadata:
307
307
  unit: /1
308
308
  label: water bills growth
309
309
  reference:
310
310
  - title: Ofwat (and custom projections)
311
- href: https://www.ofwat.gov.uk/price-review/
311
+ href: https://www.ofwat.gov.uk/price-review/
312
+ - title: Ofwat 2025-26 media statement
313
+ href: https://www.ofwat.gov.uk/average-bills-2025-26-press-statement/
@@ -16,11 +16,11 @@ reforms:
16
16
  parameters:
17
17
  gov.hmrc.child_benefit.amount.additional: 25
18
18
  - name: Reduce Universal Credit taper rate to 20%
19
- expected_impact: -41.2
19
+ expected_impact: -37.7
20
20
  parameters:
21
21
  gov.dwp.universal_credit.means_test.reduction_rate: 0.2
22
22
  - name: Raise Class 1 main employee NICs rate to 10%
23
- expected_impact: 12.2
23
+ expected_impact: 12.3
24
24
  parameters:
25
25
  gov.hmrc.national_insurance.class_1.rates.employee.main: 0.1
26
26
  - name: Raise VAT standard rate by 2pp
@@ -1,5 +1,6 @@
1
1
  import pandas as pd
2
2
  from pathlib import Path
3
+ from microdf import MicroDataFrame
3
4
 
4
5
 
5
6
  def project_water_bills():
@@ -26,14 +27,17 @@ def project_water_bills():
26
27
  proposed_increases = pd.read_csv(
27
28
  Path(__file__).parent / "ofwat_increases.csv"
28
29
  )
30
+ proposed_increases = MicroDataFrame(
31
+ proposed_increases, weights="Customers"
32
+ )
29
33
  avg_bills_2025_onwards = (
30
- proposed_increases[proposed_increases.columns[1:]].mean()[1:].values
34
+ proposed_increases[proposed_increases.columns[2:]].mean().values
31
35
  )
32
36
 
33
37
  df_post_2025 = pd.DataFrame(
34
38
  {
35
- "Year": [2025, 2026, 2027, 2028, 2029],
36
- "CPIH": [139.0, 142.2, 145.2, 148.2, 151.3],
39
+ "Year": [2024, 2025, 2026, 2027, 2028, 2029],
40
+ "CPIH": [134.0, 139.0, 142.2, 145.2, 148.2, 151.3],
37
41
  "Pre-inflation avg bills (nominal)": avg_bills_2025_onwards,
38
42
  }
39
43
  )
@@ -45,7 +49,7 @@ def project_water_bills():
45
49
  ].values
46
50
  df_post_2025["CPIH change"] = df_post_2025["CPIH"].pct_change() * 100
47
51
 
48
- for year in range(2026, 2030):
52
+ for year in range(2025, 2030):
49
53
  row = df_post_2025[df_post_2025["Year"] == year].iloc[0]
50
54
  cpi_change = (
51
55
  row["CPIH"]
@@ -65,6 +69,8 @@ def project_water_bills():
65
69
  df_post_2025["Avg bills (nominal)"].pct_change() * 100
66
70
  ).round(1)
67
71
 
72
+ df_post_2025.to_csv("test.csv")
73
+
68
74
  df_post_2025
69
75
 
70
76
  combined_water_forecast = pd.DataFrame(
@@ -72,9 +78,13 @@ def project_water_bills():
72
78
  "Year": list(range(2022, 2030)),
73
79
  "Average nominal bills YoY change": df_pre_2025[
74
80
  "Nominal YoY change"
75
- ].tolist()[1:]
81
+ ].tolist()[1:-1]
76
82
  + df_post_2025["Relative change"].tolist()[1:],
77
83
  }
78
84
  )
79
85
 
80
86
  print(combined_water_forecast.to_markdown(index=False))
87
+
88
+
89
+ if __name__ == "__main__":
90
+ project_water_bills()
@@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## [2.39.1] - 2025-07-16 11:08:29
9
+
10
+ ### Fixed
11
+
12
+ - Improved water bills projections.
13
+
8
14
  ## [2.39.0] - 2025-07-15 11:58:59
9
15
 
10
16
  ### Added
@@ -1949,6 +1955,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1949
1955
 
1950
1956
 
1951
1957
 
1958
+ [2.39.1]: https://github.com/PolicyEngine/openfisca-uk/compare/2.39.0...2.39.1
1952
1959
  [2.39.0]: https://github.com/PolicyEngine/openfisca-uk/compare/2.38.2...2.39.0
1953
1960
  [2.38.2]: https://github.com/PolicyEngine/openfisca-uk/compare/2.38.1...2.38.2
1954
1961
  [2.38.1]: https://github.com/PolicyEngine/openfisca-uk/compare/2.38.0...2.38.1
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: policyengine-uk
3
- Version: 2.39.0
3
+ Version: 2.39.1
4
4
  Summary: PolicyEngine tax and benefit system for the UK
5
5
  Project-URL: Homepage, https://github.com/PolicyEngine/policyengine-uk
6
6
  Project-URL: Repository, https://github.com/PolicyEngine/policyengine-uk
@@ -134,7 +134,7 @@ policyengine_uk/parameters/gov/dwp/JSA/income/income_disregard_single.yaml,sha25
134
134
  policyengine_uk/parameters/gov/dwp/JSA/income/takeup.yaml,sha256=YAkrZhjU_SXOQgPktzV6QFlXKVSyhJv26ENNOL67qj8,631
135
135
  policyengine_uk/parameters/gov/dwp/LHA/README.md,sha256=5tGqv1Y9604EHSpFrveWSSku3Fz1OXayWJ1SkLaPvSw,26
136
136
  policyengine_uk/parameters/gov/dwp/LHA/__init__.py,sha256=YMNgG4e3yHHtoJ6hpx5Zuz3MT-IODSC1Q1yNNANqNtk,136
137
- policyengine_uk/parameters/gov/dwp/LHA/freeze.yaml,sha256=mUZ8UeQw3E0vyRzPEeJNx_WziqE5WM_CQlUEzvZoBJ4,188
137
+ policyengine_uk/parameters/gov/dwp/LHA/freeze.yaml,sha256=WtWomrgei1cmzRMX6PS71L_8GpXAF4wG5VNUmXV1agY,207
138
138
  policyengine_uk/parameters/gov/dwp/LHA/lha_list_of_rents.csv.gz,sha256=SVaiCl5aBL5aAKvWuEHSm5baJ8pTnlIt1XBTcDESCgI,853159
139
139
  policyengine_uk/parameters/gov/dwp/LHA/percentile.yaml,sha256=TtPLtgck3uJxlrk9PX2R9Ytk9lVkSU4GkCYEKCPE7Ds,247
140
140
  policyengine_uk/parameters/gov/dwp/LHA/means_test/earn_disregard.yaml,sha256=qOLXvpxZT0fvI1WV_NKinNJHqeGQ5tQ_Fa07v_ly-kA,319
@@ -215,7 +215,7 @@ policyengine_uk/parameters/gov/dwp/pension_credit/takeup.yaml,sha256=6uqvO5g7v73
215
215
  policyengine_uk/parameters/gov/dwp/pension_credit/guarantee_credit/additions.yaml,sha256=ENATVc8mGRdlaxd44Dzt32cPRI62FmDIMNqWMfWlFXY,312
216
216
  policyengine_uk/parameters/gov/dwp/pension_credit/guarantee_credit/earnings_sources.yaml,sha256=grWpDff51dcA450BMOdrYkeIaAsTHa0fKw1eVifa9wQ,456
217
217
  policyengine_uk/parameters/gov/dwp/pension_credit/guarantee_credit/income.yaml,sha256=k2U8I3RqBELV4_QBrOgFumUBgzMneVFWeHUmeOjWiA0,518
218
- policyengine_uk/parameters/gov/dwp/pension_credit/guarantee_credit/minimum_guarantee.yaml,sha256=c4l4rZxJiWYHYxEWJ16ikA12mw09zkErWq_NrHnXl1g,857
218
+ policyengine_uk/parameters/gov/dwp/pension_credit/guarantee_credit/minimum_guarantee.yaml,sha256=Rvgt6yoR9hTwrgrN2IUsw_F24fXnTlbdjUTXb5iZjJI,961
219
219
  policyengine_uk/parameters/gov/dwp/pension_credit/guarantee_credit/carer/addition.yaml,sha256=WYo1LA8YobxJQRgdSXr8JD_RET4eJWhhvR9g60C_HG0,540
220
220
  policyengine_uk/parameters/gov/dwp/pension_credit/guarantee_credit/child/addition.yaml,sha256=OVKTox12TFpCB6_ovOaO5YqVt140P3autTP9iNdP_as,512
221
221
  policyengine_uk/parameters/gov/dwp/pension_credit/guarantee_credit/child/disability/addition.yaml,sha256=oGBPstiGFPuD5g1ovEIkpOkzzqaF8GX4cosJKMTCG3M,564
@@ -313,7 +313,7 @@ policyengine_uk/parameters/gov/dwp/winter_fuel_payment/eligibility/taxable_incom
313
313
  policyengine_uk/parameters/gov/economic_assumptions/create_economic_assumption_indices.py,sha256=Z4dYghSit5gXo4V3wBpnLIc9zgTX4cfEyb_TUlJkTGY,1937
314
314
  policyengine_uk/parameters/gov/economic_assumptions/lag_average_earnings.py,sha256=ksHcyUQkLAJmKizCeSg8j0hzPc7ajgIvbExWLgCra4U,701
315
315
  policyengine_uk/parameters/gov/economic_assumptions/lag_cpi.py,sha256=IdtaMLN1_OSu-RFZsQV8vBlbOvXsPlnNlsOuinRHrxg,642
316
- policyengine_uk/parameters/gov/economic_assumptions/yoy_growth.yaml,sha256=Vdd8sJJ29wjq0kin1cdy6fglwDTJ1bBXusVIuH0tpC0,8414
316
+ policyengine_uk/parameters/gov/economic_assumptions/yoy_growth.yaml,sha256=Ofy--y8LdS-aSaKCDKCbNQaEkUDSRGTWPG2t7xhh5lU,8542
317
317
  policyengine_uk/parameters/gov/hmrc/README.md,sha256=nkHVZl6lsjI93sR8uC7wAbul3_61wJrsP08iaW8f5lk,7
318
318
  policyengine_uk/parameters/gov/hmrc/minimum_wage.yaml,sha256=1oMbevU0ESHR51mcAG39POd1DA1FgPUep4hL6ojj-P4,2049
319
319
  policyengine_uk/parameters/gov/hmrc/business_rates/README.md,sha256=9ud50i_gMjGj6VymF-nzFDTzkFRMMJx6ybpLwbWzvpI,17
@@ -528,7 +528,7 @@ policyengine_uk/reforms/policyengine/disable_simulated_benefits.py,sha256=siEs1E
528
528
  policyengine_uk/tests/test_parameter_metadata.py,sha256=_2w2dSokAf5Jskye_KIL8eh80N7yIrUszlmqnZtwQws,450
529
529
  policyengine_uk/tests/code_health/test_variables.py,sha256=9Y-KpmzhyRGy9eEqocK9z91NXHX5QIF3mDMNGvegb7Q,1398
530
530
  policyengine_uk/tests/microsimulation/README.md,sha256=1toB1Z06ynlUielTrsAaeo9Vb-c3ZrB3tbbR4E1xUGk,3924
531
- policyengine_uk/tests/microsimulation/reforms_config.yaml,sha256=_MXQn3I0fJmJ7M4xgbDAhSlGrIThBxXXY4i6E-JWTaQ,1086
531
+ policyengine_uk/tests/microsimulation/reforms_config.yaml,sha256=KFVhg0L3uN4DMRdFOUzGhfb5CkGNiY1HkiOhhLuwI3A,1086
532
532
  policyengine_uk/tests/microsimulation/test_reform_impacts.py,sha256=xM3M2pclEhA9JIFpnuiPMy1fEBFOKcSzroRPk73FPls,2635
533
533
  policyengine_uk/tests/microsimulation/test_validity.py,sha256=RWhbSKrnrZCNQRVmGYlM8hnpe1_Blo5_xP8vr8u3kV0,694
534
534
  policyengine_uk/tests/microsimulation/update_reform_impacts.py,sha256=2pxp2RNLWxV4CesGKKHmg3qBs79Jq2Jcq3GJIBk4euU,4824
@@ -689,7 +689,7 @@ policyengine_uk/utils/create_triple_lock.py,sha256=E8qR51cq5jPL6EOXFoPi1qJhrcUBX
689
689
  policyengine_uk/utils/parameters.py,sha256=OQTzTkHMdwbphCo0mV7_n_FJT0rdwIKNFTsk_lsdETE,1301
690
690
  policyengine_uk/utils/solve_private_school_attendance_factor.py,sha256=LUZCgHKAQTY5qHlGJutn7pOFUWT0AP16YcJy-YUjQ3Q,1609
691
691
  policyengine_uk/utils/water/README.md,sha256=sdBI-JZ-jcRoSUfwNx5wjv5Ig_nM8OPvvjSsSMs_Wh8,443
692
- policyengine_uk/utils/water/forecast_water_bills.py,sha256=0wiX-1f5EI2iAEwqMg3J7oByFObsqQmylMgQvmONSmo,2555
692
+ policyengine_uk/utils/water/forecast_water_bills.py,sha256=B4vtfJuR8XfBP-KHGyhRp2Oo7X7buN-lDH6tBIXqE2U,2788
693
693
  policyengine_uk/variables/contrib/cec/non_primary_residence_wealth_tax.py,sha256=Hx5HCHc9ioK6InqTgTt6fX9JwI0sroTLgPB5N5YCJz0,668
694
694
  policyengine_uk/variables/contrib/labour/attends_private_school.py,sha256=OfTnVcRhuBNI6bIPdlbLdVvhCYWYu0eHTXNbLeGl3Bs,2422
695
695
  policyengine_uk/variables/contrib/labour/private_school_vat.py,sha256=IF1XfNNYFuYPiZd4HiGF4aAiPcY1_vGA_nAgTW7M2wg,851
@@ -1368,10 +1368,10 @@ policyengine_uk/variables/misc/spi_imputed.py,sha256=iPVlBF_TisM0rtKvO-3-PQ2UYCe
1368
1368
  policyengine_uk/variables/misc/uc_migrated.py,sha256=zFNcUJaO8gwmbL1iY9GKgUt3G6J9yrCraqBV_5dCvlM,306
1369
1369
  policyengine_uk/variables/misc/categories/lower_middle_or_higher.py,sha256=C54tHYz2DmOyvQYCC1bF8RJwRZinhAq_e3aYC-9F5fM,157
1370
1370
  policyengine_uk/variables/misc/categories/lower_or_higher.py,sha256=81NIbLLabRr9NwjpUZDuV8IV8_mqmp5NM-CZvt55TwE,129
1371
- policyengine_uk-2.39.0.data/data/share/openfisca/openfisca-country-template/CHANGELOG.md,sha256=KvU18ZBXdQYcd0jzGoFGHIl8_GG6_pQ0G4NJMZzuQFk,56283
1372
- policyengine_uk-2.39.0.data/data/share/openfisca/openfisca-country-template/LICENSE,sha256=dql8h4yceoMhuzlcK0TT_i-NgTFNIZsgE47Q4t3dUYI,34520
1373
- policyengine_uk-2.39.0.data/data/share/openfisca/openfisca-country-template/README.md,sha256=PCy7LRLdUDQS8U4PaeHeBVnyBZAqHv1dAVDDvEcom20,1976
1374
- policyengine_uk-2.39.0.dist-info/METADATA,sha256=ILZCXSl-3ByPaMHPWyNpj8ldsYt5PTIBO7GzqToQVpI,3495
1375
- policyengine_uk-2.39.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
1376
- policyengine_uk-2.39.0.dist-info/licenses/LICENSE,sha256=dql8h4yceoMhuzlcK0TT_i-NgTFNIZsgE47Q4t3dUYI,34520
1377
- policyengine_uk-2.39.0.dist-info/RECORD,,
1371
+ policyengine_uk-2.39.1.data/data/share/openfisca/openfisca-country-template/CHANGELOG.md,sha256=9xWtKSUL-NedCNAXY9dRa7PNH05UNpUArpSUZmmrapY,56445
1372
+ policyengine_uk-2.39.1.data/data/share/openfisca/openfisca-country-template/LICENSE,sha256=dql8h4yceoMhuzlcK0TT_i-NgTFNIZsgE47Q4t3dUYI,34520
1373
+ policyengine_uk-2.39.1.data/data/share/openfisca/openfisca-country-template/README.md,sha256=PCy7LRLdUDQS8U4PaeHeBVnyBZAqHv1dAVDDvEcom20,1976
1374
+ policyengine_uk-2.39.1.dist-info/METADATA,sha256=5_-o4LmxvmHaiNuDaGXTyGZezLTWoVwDEjRj-TrjYT8,3495
1375
+ policyengine_uk-2.39.1.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
1376
+ policyengine_uk-2.39.1.dist-info/licenses/LICENSE,sha256=dql8h4yceoMhuzlcK0TT_i-NgTFNIZsgE47Q4t3dUYI,34520
1377
+ policyengine_uk-2.39.1.dist-info/RECORD,,