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.9.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4d62b9c81cbb4da797559714790a8407e49308d2befcd667cc58d7c46696a353 |
|
MD5 | 1c08b268c6089f8eb147b4b1fbba167c |
|
BLAKE2b-256 | 59233964733e3a6c21e843ab9ef82b6855631a81e607eb09b92e78fc5c1493f3 |
Close
Hashes for ds_pricing_framework-0.1.9-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e0442d1fc35e77ffa940d9a3af1dba40bfe6095c0515fd795a2b29a7216280c5 |
|
MD5 | ce1523718cbd22ec9155fa6c0fb3accc |
|
BLAKE2b-256 | 9d9352ebc94d582c7ebc025792053c7629509c4bca8f0bf90462333f4ffadbe0 |