def load_dataset(key):
""" Function to load datasets included in the chainladder package.
Arguments:
key: str
The name of the dataset, e.g. RAA, ABC, UKMotor, GenIns, etc.
Returns:
pandas.DataFrame of the loaded dataset.
"""
path = os.path.dirname(os.path.abspath(__file__))
return read_pickle(os.path.join(path, 'data', key))
评论列表
文章目录