Skip to content

Commit

Permalink
Remove unnecessary typing
Browse files Browse the repository at this point in the history
  • Loading branch information
dfsnow committed Nov 25, 2024
1 parent 2da4d60 commit 1f5ea2b
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions assesspy/metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def cod(
median_ratio: float = ratio.median()
ratio_minus_med: pd.Series = ratio - median_ratio
abs_diff_sum: float = ratio_minus_med.abs().sum()
cod: float = float(100 / median_ratio * (abs_diff_sum / n))
cod = float(100 / median_ratio * (abs_diff_sum / n))

return cod

Expand Down Expand Up @@ -112,9 +112,7 @@ def prd(
sale_price = pd.Series(sale_price, dtype=float)
ratio: pd.Series = estimate / sale_price

prd: float = float(
ratio.mean() / (ratio * sale_price / sale_price.sum()).sum()
)
prd = float(ratio.mean() / (ratio * sale_price / sale_price.sum()).sum())

return prd

Expand Down

0 comments on commit 1f5ea2b

Please sign in to comment.