Skip to content

Commit

Permalink
check for more variants of missing data
Browse files Browse the repository at this point in the history
not just None but also NaN (in cases a column is misidentified as float
  • Loading branch information
fhenneke committed Dec 3, 2024
1 parent 564c2a8 commit 79cd975
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/fetch/payouts.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,12 +107,12 @@ def from_series(cls, frame: Series) -> RewardAndPenaltyDatum:
)
solver = frame["solver"]
reward_target = frame["reward_target"]
if reward_target is None:
if pandas.isna(reward_target):
log.warning(f"Solver {solver} without reward_target. Using solver")
reward_target = solver

buffer_accounting_target = frame["buffer_accounting_target"]
if buffer_accounting_target is None:
if pandas.isna(buffer_accounting_target):
log.warning(
f"Solver {solver} without buffer_accounting_target. Using solver"
)
Expand Down

0 comments on commit 79cd975

Please sign in to comment.