-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove survey enhance as a dependency (#949)
* Add back MANIFES.in * Format * Remove Survey-Enhanced dependency * Fix Restrict Winter Fuel Payment to recipients of means-tested benefits #936 * Add comparison step * Bump data * Bump UK data * Bump data yet again * Add microdf as dep
- Loading branch information
1 parent
61e7b32
commit a8a2c1c
Showing
8 changed files
with
38 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import pandas as pd | ||
|
||
psnd_old = pd.read_csv("psnd_old.csv") | ||
psnd_new = pd.read_csv("psnd_new.csv") | ||
|
||
df = pd.DataFrame( | ||
{ | ||
"year": psnd_old["year"], | ||
"OBR": psnd_old["OBR"], | ||
"PE_current": psnd_old["PE"], | ||
"PE_new": psnd_new["PE"], | ||
} | ||
) | ||
df["change"] = df["PE_new"] - df["PE_current"] | ||
df["percent_change"] = (df["change"] / df["PE_current"] * 100).round(1) | ||
|
||
print("Projection for public sector net debt (PSND):") | ||
print(df.to_markdown(index=False)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
policyengine_uk/parameters/gov/dwp/winter_fuel_payment/eligibility/require_benefits.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
|
||
setup( | ||
name="PolicyEngine-UK", | ||
version="2.1.0", | ||
version="2.1.1", | ||
author="PolicyEngine", | ||
author_email="[email protected]", | ||
classifiers=[ | ||
|
@@ -27,7 +27,8 @@ | |
], | ||
install_requires=[ | ||
"PolicyEngine-Core>=3.6.4", | ||
"PolicyEngine-UK-Data>=1.2.1,<1.3", | ||
"PolicyEngine-UK-Data>=1.2.5,<1.3", | ||
"microdf_python", | ||
], | ||
extras_require={ | ||
"dev": [ | ||
|
@@ -41,7 +42,6 @@ | |
"setuptools", | ||
"sphinx-argparse>=0.3.2,<1", | ||
"sphinx-math-dollar>=1.2.1,<2", | ||
"survey-enhance", | ||
"wheel", | ||
"yaml-changelog>=0.1.7", | ||
] | ||
|