Skip to content

Commit

Permalink
Merge pull request #3189 from cal-itp/bugfix/kim-mart-servicechecks
Browse files Browse the repository at this point in the history
replace nas with 0
  • Loading branch information
KatrinaMKaiser authored Dec 14, 2023
2 parents 9182f53 + 01d9948 commit 173cc2c
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,11 @@ def model(dbt, session):
allyears = dbt.ref("int_ntd_rr20_service_ratios")
allyears = allyears.toPandas()

numeric_columns = allyears.select_dtypes(include=["number"]).columns
allyears[numeric_columns] = allyears[numeric_columns].fillna(
value=0, inplace=False, axis=1
)

# Run validation checks
cph_checks = check_rr20_ratios(
allyears, "cost_per_hr", 0.30, this_year, last_year, logger
Expand Down

0 comments on commit 173cc2c

Please sign in to comment.