Skip to content

Commit

Permalink
Update scripts/helpers.py
Browse files Browse the repository at this point in the history
Co-authored-by: Davide Fioriti <67809479+davide-f@users.noreply.github.com>
  • Loading branch information
doneachh and davide-f authored Feb 16, 2024
1 parent 95d6186 commit 3a79971
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -748,7 +748,7 @@ def read_csv_nafix(file, **kwargs):
return pd.DataFrame()


def safe_divide(numerator, denominator):
def safe_divide(numerator, denominator, default_value=np.nan):
"""
Safe division function that returns NaN when the denominator is zero
"""
Expand Down

0 comments on commit 3a79971

Please sign in to comment.