Skip to content

Commit

Permalink
Bump data
Browse files Browse the repository at this point in the history
  • Loading branch information
nikhilwoodruff committed Sep 18, 2024
1 parent f007576 commit f8270c8
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
16 changes: 9 additions & 7 deletions .github/compare_psnd.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,16 @@
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 = 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))
print(df.to_markdown(index=False))
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
],
install_requires=[
"PolicyEngine-Core>=3.6.4",
"PolicyEngine-UK-Data>=1.2.1,<1.3",
"PolicyEngine-UK-Data>=1.2.2,<1.3",
],
extras_require={
"dev": [
Expand Down

0 comments on commit f8270c8

Please sign in to comment.