Skip to content

Development lags could not be determined #681

@Coomaren

Description

@Coomaren

Are you on the latest chainladder version?

  • Yes, this bug occurs on the latest version.

Describe the bug in words

I already have my development in months. and I am trying to create a triangle as below. But I am getting an error.
It seems that this issue was discussed before. I apologise if I have missed this. I have just installed chainladder and so have the latest version

How can the bug be reproduced?

data = {
'origin': [2018, 2018, 2018, 2018, 2019, 2019, 2019, 2019],
'dev': [1, 2, 3, 4, 1, 2, 3, 4], # months
'value': [100, 80, 60, 40, 120, 90, 70, 50]
}
df = pd.DataFrame(data)
tri = cl.Triangle(df, origin='origin', development='dev', columns='value')

What is the expected behavior?

I would expect the triangle with the years plus the value at months 1-4

Metadata

Metadata

Assignees

No one assigned

    Labels

    Triage Pending ⚠️New issues that haven't yet been reviewed or categorized.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions