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
Close
Hashes for ds-pricing-framework-0.1.4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | f40e0e89a240d9cc70912fa52ce2c40d1c8f4e0c28592ab512ddbcdef5ad6e9e |
|
MD5 | b6ecf6bd019a2f9478fbbe509910a157 |
|
BLAKE2b-256 | 16ff570520244f2973b907eb219432a1a350df3d55b8ee0b448a85653d86d243 |
Close
Hashes for ds_pricing_framework-0.1.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2430ac812b2696626baf392cb50685fd74f73bf9e370518a1fb6a6b2ce6ebca0 |
|
MD5 | c7434f87b9c01bb7d9dd7bf8e6475253 |
|
BLAKE2b-256 | 52f358bd89e816ce933c82253b6f433acccd89538f40372f1eca1b36d6c13231 |