Read the latest Real Python tutorials
Project description
ds-pricing-framework
This package contains the following class(es):
- TriageVariable
To use the TriageVariable module, you will need to start with a pandas dataframe that has the following variables:
- ep
- il
- policy_number
- claim_indicator
- policy_gen
- age
- price_per_mile
You will also need:
- a target variable for the model (claim_indicator is the preferred variable)
- a proposed variable that you are testing, summarized at the policy level
- any variables that you would like to control for
The inputs for TriageVariable are:
- pandas dataframe
- target variable
- proposed variable
- list of control variables
Call the function run_triage which will output tables to help make a decision about the variable.
Example:
pip install ds-pricing-framework
import pricing_framework_triage as pf
triage = pf.TriageVariable(df, "claim_indicator", "prior_claim", ["package", "seasoning", "age_bucket"])
triage.run_triage()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file ds-pricing-framework-0.1.11.tar.gz
.
File metadata
- Download URL: ds-pricing-framework-0.1.11.tar.gz
- Upload date:
- Size: 5.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.16
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e738cf07371095f5ab89101f7f157773f71586c198f2b77e43f06d66cb5e47e8 |
|
MD5 | f2fa13938f6c59142b7b8f851b779e3d |
|
BLAKE2b-256 | e9d13ee0d99a110c51a63d817e4f1f7ec3459f8ed9f199d22813365744e11493 |
File details
Details for the file ds_pricing_framework-0.1.11-py3-none-any.whl
.
File metadata
- Download URL: ds_pricing_framework-0.1.11-py3-none-any.whl
- Upload date:
- Size: 6.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.16
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e7fa18a93385d80f4a1f8166d5ace71091aaab6b110b2a594b6db3749278eacb |
|
MD5 | bbc94909c2a802ddcd6b6c56b465460f |
|
BLAKE2b-256 | e78bb6e33394b4556578a6abebb9baa9b108758a1b5c693823681b936035da6a |