Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

valuation_date bug in Triangle as vector #137

Closed
jbogaardt opened this issue Mar 23, 2021 · 0 comments
Closed

valuation_date bug in Triangle as vector #137

jbogaardt opened this issue Mar 23, 2021 · 0 comments
Labels

Comments

@jbogaardt
Copy link
Collaborator

Unit test:

import chainladder as cl

before = cl.load_sample('prism')['Paid'].sum().incr_to_cum()
before=before[before.valuation<='2017-08'].latest_diagonal

after = cl.Triangle(
    before.to_frame(keepdims=True).reset_index(),
    origin='origin', development='development', columns='Paid', index=before.key_labels)

assert after.valuation_date == before.valuation_date
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant