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.7.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7d45959e3f198f649882edf10e87988504b7dddd4b3b763a4741d70ea62c8001 |
|
MD5 | 242fe42d5ccbfdec652c2326873f91a4 |
|
BLAKE2b-256 | 588d336c3f62d1107911509b3f2ff8f3ee306f67fd8c08a41cf79ff8c9db8ef9 |
Close
Hashes for ds_pricing_framework-0.1.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b14a1101a08248af1b37cbec5a46ab98900b2d817c01a17b6afe1bb7d286d660 |
|
MD5 | aa50934c11de8274485c4831f8ab7cf0 |
|
BLAKE2b-256 | 51f92adebdfa7b0ffb42d04656f95854d6122130be6f368d684927fdb9a2acab |