-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Backend PHRMA Cancer: Adds
_pct_share
cols (#3584)
# Description and Motivation <!--- bulleted, high level items. use keywords (eg "closes #144" or "fixes #4323") --> - part of #3579 - extricate `build_bq_col_types()` in util function which scans df and automatically gets the metric cols based on suffixes - calcs pct_shares with or without "unknowns" based on the demographic breakdown and what's reflected in the source data - updates golden data with new cols ## Has this been tested? How? - tests passing ## Types of changes (leave all that apply) - New content or feature ## New frontend preview link is below in the Netlify comment 😎 --------- Co-authored-by: Eric M Warren II <[email protected]>
- Loading branch information
1 parent
6751f51
commit 0b18d96
Showing
12 changed files
with
2,288 additions
and
2,262 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 16 additions & 16 deletions
32
python/tests/data/phrma_brfss/golden_data/expected_age_national.csv
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,16 @@ | ||
age,breast_screened_estimated_total,breast_screening_eligible_estimated_total,state_fips,cervical_screened_estimated_total,cervical_screening_eligible_estimated_total,colorectal_screened_estimated_total,colorectal_screening_eligible_estimated_total,lung_screened_estimated_total,lung_screening_eligible_estimated_total,prostate_screened_estimated_total,prostate_screening_eligible_estimated_total,breast_screened_pct_rate,cervical_screened_pct_rate,colorectal_screened_pct_rate,lung_screened_pct_rate,prostate_screened_pct_rate,state_name | ||
21-24,,,00,1868.0,6170.0,,,,,,,,26.0,,,,United States | ||
25-29,,,00,3653.0,8534.0,,,,,,,,40.0,,,,United States | ||
30-34,,,00,4841.0,10474.0,,,,,,,,44.0,,,,United States | ||
35-39,,,00,5778.0,11870.0,,,,,,,,46.0,,,,United States | ||
40-44,,,00,6911.0,12770.0,,,,,,,,52.0,,,,United States | ||
45-49,,,00,6741.0,12324.0,7430.0,25200.0,,,,,,52.0,30.0,,,United States | ||
50-54,11932.0,16118.0,00,7668.0,14828.0,16788.0,29794.0,215.0,1701.0,,,74.0,51.0,54.0,13.0,,United States | ||
55-59,13224.0,17541.0,00,7980.0,16110.0,23976.0,32699.0,594.0,2595.0,284.0,884.0,76.0,50.0,71.0,22.0,30.0,United States | ||
60-64,16850.0,21889.0,00,,,30420.0,39805.0,1092.0,3604.0,435.0,1059.0,76.0,,75.0,29.0,35.0,United States | ||
60-65,,,00,11135.0,24842.0,,,,,,,,44.0,,,,United States | ||
65-69,18526.0,23217.0,00,,,34570.0,42506.0,1274.0,3669.0,563.0,1116.0,79.0,,80.0,34.0,49.0,United States | ||
70-74,17273.0,21512.0,00,,,,,1090.0,2995.0,,,79.0,,,35.0,,United States | ||
70-75,,,00,,,39433.0,47189.0,,,,,,,83.0,,,United States | ||
75-79,,,00,,,,,546.0,1642.0,,,,,,38.0,,United States | ||
All,77805.0,100277.0,00,56575.0,117922.0,152617.0,217193.0,4811.0,16206.0,1282.0,3059.0,77.0,45.0,66.0,28.0,37.0,United States | ||
age,breast_screened_estimated_total,breast_screening_eligible_estimated_total,state_fips,cervical_screened_estimated_total,cervical_screening_eligible_estimated_total,colorectal_screened_estimated_total,colorectal_screening_eligible_estimated_total,lung_screened_estimated_total,lung_screening_eligible_estimated_total,prostate_screened_estimated_total,prostate_screening_eligible_estimated_total,breast_screened_pct_rate,cervical_screened_pct_rate,colorectal_screened_pct_rate,lung_screened_pct_rate,prostate_screened_pct_rate,state_name,breast_screened_pct_share,cervical_screened_pct_share,colorectal_screened_pct_share,lung_screened_pct_share,prostate_screened_pct_share | ||
21-24,,,00,1868.0,6170.0,,,,,,,,26.0,,,,United States,,3.3,,, | ||
25-29,,,00,3653.0,8534.0,,,,,,,,40.0,,,,United States,,6.5,,, | ||
30-34,,,00,4841.0,10474.0,,,,,,,,44.0,,,,United States,,8.6,,, | ||
35-39,,,00,5778.0,11870.0,,,,,,,,46.0,,,,United States,,10.2,,, | ||
40-44,,,00,6911.0,12770.0,,,,,,,,52.0,,,,United States,,12.2,,, | ||
45-49,,,00,6741.0,12324.0,7430.0,25200.0,,,,,,52.0,30.0,,,United States,,11.9,4.9,, | ||
50-54,11932.0,16118.0,00,7668.0,14828.0,16788.0,29794.0,215.0,1701.0,,,74.0,51.0,54.0,13.0,,United States,15.3,13.6,11.0,4.5, | ||
55-59,13224.0,17541.0,00,7980.0,16110.0,23976.0,32699.0,594.0,2595.0,284.0,884.0,76.0,50.0,71.0,22.0,30.0,United States,17.0,14.1,15.7,12.3,22.2 | ||
60-64,16850.0,21889.0,00,,,30420.0,39805.0,1092.0,3604.0,435.0,1059.0,76.0,,75.0,29.0,35.0,United States,21.7,,19.9,22.7,33.9 | ||
60-65,,,00,11135.0,24842.0,,,,,,,,44.0,,,,United States,,19.7,,, | ||
65-69,18526.0,23217.0,00,,,34570.0,42506.0,1274.0,3669.0,563.0,1116.0,79.0,,80.0,34.0,49.0,United States,23.8,,22.7,26.5,43.9 | ||
70-74,17273.0,21512.0,00,,,,,1090.0,2995.0,,,79.0,,,35.0,,United States,22.2,,,22.7, | ||
70-75,,,00,,,39433.0,47189.0,,,,,,,83.0,,,United States,,,25.8,, | ||
75-79,,,00,,,,,546.0,1642.0,,,,,,38.0,,United States,,,,11.3, | ||
All,77805.0,100277.0,00,56575.0,117922.0,152617.0,217193.0,4811.0,16206.0,1282.0,3059.0,77.0,45.0,66.0,28.0,37.0,United States,100.0,100.0,100.0,100.0,100.0 |
Oops, something went wrong.