Skip to content

Commit c861aff

Browse files
committed
Added more clarity on the dates in the multi trend example
1 parent db80aa1 commit c861aff

1 file changed

Lines changed: 10 additions & 18 deletions

File tree

docs/user_guide/adjustments.ipynb

Lines changed: 10 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -657,7 +657,7 @@
657657
},
658658
{
659659
"cell_type": "code",
660-
"execution_count": 6,
660+
"execution_count": 7,
661661
"id": "252ed464-a589-4a09-9bc7-937c4b0a8529",
662662
"metadata": {},
663663
"outputs": [
@@ -704,7 +704,7 @@
704704
"2020 1.034456"
705705
]
706706
},
707-
"execution_count": 6,
707+
"execution_count": 7,
708708
"metadata": {},
709709
"output_type": "execute_result"
710710
}
@@ -713,7 +713,7 @@
713713
"data = pd.DataFrame({\n",
714714
" 'Year': [2016, 2017, 2018, 2019, 2020],\n",
715715
" 'EarnedPremium': [10_000]*5})\n",
716-
"prem_tri = cl.Triangle(data, origin='Year', columns='EarnedPremium')\n",
716+
"prem_tri = cl.Triangle(data, origin='Year', columns='EarnedPremium', cumulative = True)\n",
717717
"prem_tri = cl.ParallelogramOLF(rate_history, change_col='RateChange', date_col='EffDate').fit_transform(prem_tri)\n",
718718
"prem_tri.olf_"
719719
]
@@ -757,7 +757,7 @@
757757
},
758758
{
759759
"cell_type": "code",
760-
"execution_count": 7,
760+
"execution_count": 8,
761761
"id": "af652141-0a29-4dcf-9807-18f252c6cd3c",
762762
"metadata": {},
763763
"outputs": [
@@ -767,7 +767,7 @@
767767
"True"
768768
]
769769
},
770-
"execution_count": 7,
770+
"execution_count": 8,
771771
"metadata": {},
772772
"output_type": "execute_result"
773773
}
@@ -801,7 +801,7 @@
801801
},
802802
{
803803
"cell_type": "code",
804-
"execution_count": 8,
804+
"execution_count": 9,
805805
"id": "dae2933e-864f-4d42-a866-e3fda52d1f2a",
806806
"metadata": {},
807807
"outputs": [
@@ -972,7 +972,7 @@
972972
"1997 1.00 NaN NaN NaN NaN NaN NaN NaN NaN NaN"
973973
]
974974
},
975-
"execution_count": 8,
975+
"execution_count": 9,
976976
"metadata": {},
977977
"output_type": "execute_result"
978978
}
@@ -981,22 +981,14 @@
981981
"ppauto_loss = cl.load_sample('clrd').groupby('LOB').sum().loc['ppauto', 'CumPaidLoss']\n",
982982
"cl.Trend(\n",
983983
" trends=[.05, .03],\n",
984-
" dates=[('1997-12-31', '1995'),('1995', '1992-07')]\n",
984+
" dates=[('1997-12-31', '1995-01-01'),('1995-01-01', '1992-07-01')]\n",
985985
").fit(ppauto_loss).trend_.round(2)"
986986
]
987-
},
988-
{
989-
"cell_type": "code",
990-
"execution_count": null,
991-
"id": "eaaf2ea2-cf4e-4549-ae83-4f1b6476e30e",
992-
"metadata": {},
993-
"outputs": [],
994-
"source": []
995987
}
996988
],
997989
"metadata": {
998990
"kernelspec": {
999-
"display_name": "Python 3.7.11 ('cl_dev')",
991+
"display_name": "Python 3 (ipykernel)",
1000992
"language": "python",
1001993
"name": "python3"
1002994
},
@@ -1010,7 +1002,7 @@
10101002
"name": "python",
10111003
"nbconvert_exporter": "python",
10121004
"pygments_lexer": "ipython3",
1013-
"version": "3.7.11"
1005+
"version": "3.9.12"
10141006
},
10151007
"vscode": {
10161008
"interpreter": {

0 commit comments

Comments
 (0)