Skip to content

Unexpected Behavior From grain() Method #161

Answered by SMSinclair
SMSinclair asked this question in Q&A
Discussion options

You must be logged in to vote

@jbogaardt ,

Thanks!

My original post was misleading, that was actually the top left corner of an incomplete cumulative triangle with 36 accident months in the origin ranging from 2018-05 to 2021-04.

Anyway, I mocked up an incomplete cumulative triangle with 12 accident months and dummy values to test on:

import pandas as pd
import chainladder as cl

data = pd.DataFrame(
    {'origin': ['2018-01','2018-02','2018-03','2018-04','2018-05','2018-06',
                '2018-07','2018-08','2018-09','2018-10','2018-11','2018-12',
                '2018-01','2018-02','2018-03','2018-04','2018-05','2018-06',
                '2018-07','2018-08','2018-09','2018-10','2018-11','2018-01',
               …

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@CarinaWY
Comment options

@jbogaardt
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by jbogaardt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants