diff --git a/chainladder/core/triangle.py b/chainladder/core/triangle.py index a17a8915..c8852045 100644 --- a/chainladder/core/triangle.py +++ b/chainladder/core/triangle.py @@ -778,16 +778,16 @@ def trend( "Only origin and valuation axes are supported for trending" ) - print("====== BEGIN ======") + # print("====== BEGIN ======") xp = self.get_array_module() start = pd.to_datetime(start) if type(start) is str else start start = self.origin[0].to_timestamp() if start is None else start - print("start", start) + # print("start", start) end = pd.to_datetime(end) if type(end) is str else end end = self.valuation_date if end is None else end - print("end", end) + # print("end", end) if axis in ["origin", 2, -2]: vector = pd.DatetimeIndex( @@ -797,7 +797,7 @@ def trend( ) else: vector = self.valuation - print("vector\n", vector) + # print("vector\n", vector) upper, lower = (end, start) if end > start else (start, end) # print("lower", lower) @@ -808,7 +808,7 @@ def trend( np.minimum(np.datetime64(upper), vector.values), np.datetime64(lower) ) ) - print("vector\n", vector) + # print("vector\n", vector) # print("vector\n", vector) # vector = ( # (end.year - vector.year) * 12 + (end.month - vector.month) @@ -816,7 +816,7 @@ def trend( # print("vector\n", vector) vector = ((end - vector).days).values.reshape(self.shape[-2:], order="f") - print("days to trend\n", vector) + # print("days to trend\n", vector) if self.is_ultimate and ultimate_lag is not None and vector.shape[-1] > 1: vector[:, -1] = vector[:, -2] + ultimate_lag