From 42c9ad4d5199296cbeaa44a3581d100e12a95197 Mon Sep 17 00:00:00 2001 From: Kenneth Hsu Date: Thu, 4 Apr 2024 18:59:06 -0700 Subject: [PATCH] Removed debugger --- chainladder/utils/utility_functions.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/chainladder/utils/utility_functions.py b/chainladder/utils/utility_functions.py index 9a06df01..a389b4df 100644 --- a/chainladder/utils/utility_functions.py +++ b/chainladder/utils/utility_functions.py @@ -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 @@ -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,