mirror of
https://github.com/DOI-DO/j40-cejst-2.git
synced 2025-07-26 18:51:17 -07:00
details on ranked percentiles
This commit is contained in:
parent
d56a084df7
commit
c1e35fb2f5
2 changed files with 8 additions and 6 deletions
|
@ -92,14 +92,13 @@ class MarylandEJScreenETL(ExtractTransformLoad):
|
|||
inplace=True,
|
||||
)
|
||||
|
||||
# Interpretation: An EJ score (reported as a percentile)
|
||||
# has a percentile rank of N for some N between 0 - 100"
|
||||
self.df[field_names.MARYLAND_EJSCREEN_PERCENTILE_FIELD] = self.df[
|
||||
field_names.MARYLAND_EJSCREEN_SCORE_FIELD
|
||||
].rank(
|
||||
pct=True,
|
||||
ascending=True
|
||||
)
|
||||
].rank(pct=True, ascending=True)
|
||||
|
||||
# An arbitrarily chosen percentile is used in the comparison tool output
|
||||
# An arbitrarily chosen threshold is used in the comparison tool output
|
||||
self.df[field_names.MARYLAND_EJSCREEN_BURDENED_THRESHOLD_FIELD] = (
|
||||
self.df[field_names.MARYLAND_EJSCREEN_PERCENTILE_FIELD] > 0.75
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue