casact / chainladder-python

Actuarial reserving in Python
https://chainladder-python.readthedocs.io/en/latest/
Mozilla Public License 2.0
192 stars 71 forks source link

New flaw in basic operation of the package #475

Closed thearmchair47 closed 6 months ago

thearmchair47 commented 12 months ago

Describe the bug It seems some packages used in Chainladder have been updated and are leading to errors when using the package.

To Reproduce Steps to reproduce the behavior. Code should be self-contained and runnable against publicly available data. For example:

import chainladder as cl
triangle = cl.load_sample('raa')

Expected behavior raa data to be imported, or any action that does not lead to an error. Result when running: ValueError: Unit M is not supported. Only unambiguous timedelta values durations are supported. Allowed units are 'W', 'D', 'h', 'm', 's', 'ms', 'us', 'ns'

Desktop (please complete the following information):

jbogaardt commented 12 months ago

We've updated chainladder to be compliant with pandas>=2.0, but I think that was after chainladder==0.8.14. Can you try upgrading chainladder to 0.8.18 and see if that resolves your issue?