PolicyEngine / PolicyEngine/policyengine-core

Weights return nans when using the `calculate_dataframe` function when mapped to any entity besides household

Open
#384 1 comment 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.