Skip to content

Commit

Permalink
Removed debugger
Browse files Browse the repository at this point in the history
  • Loading branch information
kennethshsu committed Apr 5, 2024
1 parent 1c512c2 commit 42c9ad4
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions chainladder/utils/utility_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,14 +185,11 @@ def parallelogram_olf(
)

rate_changes = pd.Series(np.array(values), np.array(date))
# print("rate_changes:\n", rate_changes)
rate_changes = rate_changes.reindex(date_idx, fill_value=0)
# print("rate_changes:\n", rate_changes)

cum_rate_changes = np.cumprod(1 + rate_changes.values)
cum_rate_changes = pd.Series(cum_rate_changes, rate_changes.index)
# print("cum_rate_changes:\n", cum_rate_changes)
crl = cum_rate_changes[-1]
# print("crl:", crl)

cum_avg_rate_non_leaps = cum_rate_changes
cum_avg_rate_leaps = cum_rate_changes
Expand All @@ -216,8 +213,6 @@ def parallelogram_olf(
cum_avg_rate_leaps = (
cum_avg_rate_leaps + cum_avg_rate_leaps.shift(1).values
) / 2
# print("cum_avg_rate_non_leaps\n", cum_avg_rate_non_leaps)
# print("cum_avg_rate_leaps\n", cum_avg_rate_leaps)

dropdates_num = {
"M": 12,
Expand Down

0 comments on commit 42c9ad4

Please sign in to comment.