Getting a vector of development ages #544
-
my_tri.latest_diagonal will return the diagonal with the origin year as the index: How can I also get the corresponding development ages? e.g. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hi @SleepyBob, I don't know that this feature is supported currently. @jbogaardt? However, the ages can be quickly calculated as a workaround. import pandas as pd
import chainladder as cl
xyz = cl.load_sample("xyz")
(xyz["Incurred"].latest_diagonal.valuation.year - xyz["Incurred"].origin.year) * 12 + 12 Index([132, 120, 108, 96, 84, 72, 60, 48, 36, 24, 12], dtype='int64') Does this help? |
Beta Was this translation helpful? Give feedback.
Hi @SleepyBob,
I don't know that this feature is supported currently. @jbogaardt?
However, the ages can be quickly calculated as a workaround.
Does this help?