PolicyEngine / PolicyEngine/policyengine-core
Weights return nans when using the `calculate_dataframe` function when mapped to any entity besides household
Open
Nobody has claimed this yet.
bug
- Dominant language
- Python
- Stars
- 22
- Forks
- 30
- Avg merge
- 14h 33m
- Merged PRs (30d)
- 7
Description
Not sure if this is a recent issue but this makes a lot of the analysis unusable when using calculate_dataframe
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the issue with the calculate_dataframe function, mapping weights to an entity other than household. Trace where the resulting weights become NaN and compare that path with household mapping. Done means calculate_dataframe returns usable, non-NaN weights for supported entities; no test file or source path is named in the issue.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- backend, data
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100