Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Healthcare Readmission/unfair.py's self-pay claim contradicts its own printed crosstab (AfricanAmerican rate is lower than Caucasian's, not higher)

Open Beginner friendly
#705 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
75/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
python

Research direction

The issue is in Healthcare Readmission/unfair.py, specifically the 'Self-pay rate by race' proxy-analysis block. Run the script to see the printed crosstab and the contradictory claim. Examine the code that generates the claim and the data grouping logic. Determine whether to adjust the claim's wording to match the data or remove the inaccurate assertion.

Written by the indexing model from the issue text.

Description

bug documentation

Where: Healthcare Readmission/unfair.py, the "Self-pay rate by race" proxy-analysis block, printed at runtime.

The gap: The script prints:

"Self-pay = uninsured. Uninsured rates are higher among minority populations due to structural access gaps."

immediately under a crosstab it just computed and printed itself, which shows the opposite for the dataset's largest minority subgroup:

Repro:

$ python3 "Healthcare Readmission/unfair.py" 2>&1 | sed -n '13,20p'
Self-pay rate by race:
  AfricanAmerican        2.6%
  Asian                  10.1%
  Caucasian              5.2%
  Hispanic               5.8%
  Other                  7.6%

AfricanAmerican (2.6%) is lower than Caucasian (5.2%) - not higher. Asian, at 10.1%, is the highest of all groups. The "is_minority" grouping used everywhere else in this exact script (~df['race'].isin(['Caucasian','Asian'])) makes AfricanAmerican the dominant minority subgroup, so the claim "uninsured rates are higher among minority populations" is directly contradicted by the script's own data for that subgroup. (Contrast with the adjacent Medicaid claim two paragraphs up, which is well-supported: Hispanic 9.0% and AfricanAmerican 5.5% both exceed Caucasian's 2.7%.)

Fix direction: Correct or remove the self-pay claim's directional assertion - either restrict it to the subgroups it's actually true for (Asian, Other, Hispanic), or drop the "higher among minority populations" framing since it doesn't hold for AfricanAmerican specifically.

Dominant language
HTML
Stars
47
Forks
45
Avg merge
2h
Merged PRs (30d)
92

Getting set up

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.

More from yakew7/Fair-Code

All issues in yakew7/Fair-Code

Similar issues

More Data Engineering issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.