PolicyEngine / PolicyEngine/policyengine-app-v2
Add dataframe-generating code to Reproduce in Python segment
Nobody has claimed this yet.
- Dominant language
- HTML
- Stars
- 1
- Forks
- 3
- Avg merge
- 1d 50m
- Merged PRs (30d)
- 39
Description
Feature request
Add dataframe-generating code as an option in the "Reproduce in Python" segment, so users can go directly from a result to a pandas DataFrame suitable for building custom charts — rather than only getting the raw simulation-reproduction snippet.
Motivation
This would make the reproducibility surface materially more useful for anyone who wants to chart or further analyze a result outside the app. It would also help standardize how PolicyEngine results get embedded in blog posts and reports (export the chart-ready data, rather than re-deriving it by hand).
Scope
Should include brief guidance on the recommended pattern for turning a household/economy result into a DataFrame — the current reproducibility tab doesn't offer this shortcut.
Migrated from policyengine-app#2575.
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 locating the current "Reproduce in Python" segment and reading how its existing simulation-reproduction snippet is generated. Add a dataframe-generating option with brief guidance for household or economy results, then verify that the output is suitable for charting and further analysis in pandas.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- pandas, python
- Domain
- data-visualization, frontend
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 64/100