# actymath
Actuarial formulae and commutation functions for life insurance products (with a fast Pandas backend)
## Read this first
This started out as a package to build up the various actuarial formulae using the Pandas backend for speed.
The way it works is to create a 'grid' of actuarial calculation vectors in a pandas DataFrame that you can use for a single policy or a single cohort.
When you ask for a particular actuarial formula or calculation to be created, it will spawn the columns needed to generate it.
Everything is using Pandas in the backend, so you can use any normal Pandas machinery you like.
This is very much 'in development'.
## Usage
### Installation
Install using pip
pip install actymath
### Getting started
This [getting started notebook](https://github.com/ttamg/actymath/blob/main/notebooks/01_getting_started.ipynb) illustrates how to use the package with a simple example.
### Actuarial formula
The formula definitions are called **columns** in this package as they spawn columns in a pandas DataFrame.
These formulae can be explored in the [actymath/columns directory](https://github.com/ttamg/actymath/tree/main/actymath/columns).
### Mortality tables
Currently only a few old standard mortality tables are implemented, but there is support for 1D and 2D mortality tables [here](https://github.com/ttamg/actymath/blob/main/actymath/tables.py).
## Contributing
Feel free to contribute or suggest improvements.
- Add suggested improvements as a GitHub issue on this project
- Pull requests also welcomed, particularly for any fixes, new tables or useful actuarial formulae
### Developer setup
Clone this repository using
git clone git@github.com:ttamg/actymath.git
Dependencies use **poetry** so make sure you have [poetry already installed](https://python-poetry.org/docs/) on you development machine.
With poetry, you create a new virtual environment for yourself and activate it using
poetry shell
To install all the dependencies in your new virtual environment, use
poetry install
### Running tests
We use **pytest** for all testing. Run the test pack using
pytest
Raw data
{
"_id": null,
"home_page": "https://github.com/ttamg/actymath",
"name": "actymath",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.8,<4.0",
"maintainer_email": "",
"keywords": "actuarial,pandas,insurance",
"author": "Matt Gosden",
"author_email": "mdgosden@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/f7/1a/34d8827f5e7b16a129d0cc34a80cabab69128228e76aff0df979791c4626/actymath-0.1.2.tar.gz",
"platform": null,
"description": "# actymath\n\nActuarial formulae and commutation functions for life insurance products (with a fast Pandas backend)\n\n## Read this first\n\nThis started out as a package to build up the various actuarial formulae using the Pandas backend for speed.\n\nThe way it works is to create a 'grid' of actuarial calculation vectors in a pandas DataFrame that you can use for a single policy or a single cohort.\n\nWhen you ask for a particular actuarial formula or calculation to be created, it will spawn the columns needed to generate it.\n\nEverything is using Pandas in the backend, so you can use any normal Pandas machinery you like.\n\nThis is very much 'in development'.\n\n## Usage\n\n### Installation\n\nInstall using pip\n\n pip install actymath\n\n### Getting started\n\nThis [getting started notebook](https://github.com/ttamg/actymath/blob/main/notebooks/01_getting_started.ipynb) illustrates how to use the package with a simple example.\n\n### Actuarial formula\n\nThe formula definitions are called **columns** in this package as they spawn columns in a pandas DataFrame.\n\nThese formulae can be explored in the [actymath/columns directory](https://github.com/ttamg/actymath/tree/main/actymath/columns).\n\n### Mortality tables\n\nCurrently only a few old standard mortality tables are implemented, but there is support for 1D and 2D mortality tables [here](https://github.com/ttamg/actymath/blob/main/actymath/tables.py).\n\n## Contributing\n\nFeel free to contribute or suggest improvements.\n\n- Add suggested improvements as a GitHub issue on this project\n\n- Pull requests also welcomed, particularly for any fixes, new tables or useful actuarial formulae\n\n### Developer setup\n\nClone this repository using\n\n git clone git@github.com:ttamg/actymath.git\n\nDependencies use **poetry** so make sure you have [poetry already installed](https://python-poetry.org/docs/) on you development machine.\n\nWith poetry, you create a new virtual environment for yourself and activate it using\n\n poetry shell\n\nTo install all the dependencies in your new virtual environment, use\n\n poetry install\n\n### Running tests\n\nWe use **pytest** for all testing. Run the test pack using\n\n pytest\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "Actuarial Math and commutation functions for life insurance product - with a Pandas backend",
"version": "0.1.2",
"split_keywords": [
"actuarial",
"pandas",
"insurance"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "5370344a8a0efaa50a68770bbcd798b79e29554dcd0614c1a64cb6d5a9870b87",
"md5": "7f5fb50b0345816dc0cd8f2130f4d270",
"sha256": "6b0e1133dbd9f8de10b0f58614af24f5b06020e0b4dfa1c954404e882551e15c"
},
"downloads": -1,
"filename": "actymath-0.1.2-py3-none-any.whl",
"has_sig": false,
"md5_digest": "7f5fb50b0345816dc0cd8f2130f4d270",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.8,<4.0",
"size": 18179,
"upload_time": "2023-04-11T17:38:36",
"upload_time_iso_8601": "2023-04-11T17:38:36.806641Z",
"url": "https://files.pythonhosted.org/packages/53/70/344a8a0efaa50a68770bbcd798b79e29554dcd0614c1a64cb6d5a9870b87/actymath-0.1.2-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "f71a34d8827f5e7b16a129d0cc34a80cabab69128228e76aff0df979791c4626",
"md5": "5c8be67546f39b14a482a3ff59333ce3",
"sha256": "d9f903330e566a42216f8ac919d7a26bf889ed2800be2ec668554a2bb4f32d3f"
},
"downloads": -1,
"filename": "actymath-0.1.2.tar.gz",
"has_sig": false,
"md5_digest": "5c8be67546f39b14a482a3ff59333ce3",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.8,<4.0",
"size": 15017,
"upload_time": "2023-04-11T17:38:38",
"upload_time_iso_8601": "2023-04-11T17:38:38.434737Z",
"url": "https://files.pythonhosted.org/packages/f7/1a/34d8827f5e7b16a129d0cc34a80cabab69128228e76aff0df979791c4626/actymath-0.1.2.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-04-11 17:38:38",
"github": true,
"gitlab": false,
"bitbucket": false,
"github_user": "ttamg",
"github_project": "actymath",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "actymath"
}