Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions changelog.d/fix-soi-dtype-and-se-pension.fixed.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix SOI uprating dtype error on newer pandas and add defensive non-negativity clip for retirement/SS variables in splice step.
1 change: 1 addition & 0 deletions policyengine_us_data/utils/soi.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,7 @@ def get_soi(year: int) -> pd.DataFrame:
}
soi = pd.read_csv(CALIBRATION_FOLDER / "soi_targets.csv")
soi = soi[soi.Year == soi.Year.max()]
soi["Value"] = soi["Value"].astype(float)

uprating_factors = {}
for variable in uprating_map:
Expand Down
Loading