Skip to content

Commit 653da8a

Browse files
committed
more fixes
1 parent d152424 commit 653da8a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

docs/friedland/chapter_7.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -353,12 +353,12 @@ Unfortunately this does not match the table from the text, due to rounding. We w
353353

354354
>>> def rounded_development_summary(reported: cl.Triangle(), paid: cl.Triangle()) -> pd.DataFrame():
355355
... output = pd.DataFrame() # initializing a DataFrame
356-
... output["Reported Claims"] = reported.latest_diagonal.to_frame(origin_as_datetime=False) # using a vector of losses to anchor the exhibit index
356+
... output["Reported Claims"] = reported.latest_diagonal.round(decimals=0).to_frame(origin_as_datetime=False) # using a vector of losses to anchor the exhibit index
357357
... age = reported.development.iloc[::-1] # flipping the age order
358358
... age.index = output.index # forcing the index to match
359359
... output['Age'] = age
360360
... output = output[['Age','Reported Claims']] # reordering the columns
361-
... output ['Paid Claims'] = paid.latest_diagonal.to_frame(origin_as_datetime=False) # adding in paid losses
361+
... output ['Paid Claims'] = paid.latest_diagonal.round(decimals=0).to_frame(origin_as_datetime=False) # adding in paid losses
362362
... reported_cdf = reported.ldf_.round(decimals = 3).incr_to_cum().round(decimals = 3).T
363363
... reported_cdf.index = output.index[::-1]
364364
... output["Reported CDF"] = reported_cdf

0 commit comments

Comments
 (0)