Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ds-pricing-framework-0.1.10.tar.gz (5.1 kB view details)

Uploaded Source

Built Distribution

ds_pricing_framework-0.1.10-py3-none-any.whl (6.1 kB view details)

Uploaded Python 3

File details

Details for the file ds-pricing-framework-0.1.10.tar.gz.

File metadata

  • Download URL: ds-pricing-framework-0.1.10.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

Hashes for ds-pricing-framework-0.1.10.tar.gz
Algorithm Hash digest
SHA256 47639e54300a8b4b3e0875a73b7b9d83800d2fef6bdeaca418fb8cd1950cc316
MD5 ee9fca7fc6872bd49e6dad88e7f03934
BLAKE2b-256 e4abcd6f96608ec252e0941d9d9654556eebaeebdc3c707edccb6b985d0dcf8c

See more details on using hashes here.

File details

Details for the file ds_pricing_framework-0.1.10-py3-none-any.whl.

File metadata

File hashes

Hashes for ds_pricing_framework-0.1.10-py3-none-any.whl
Algorithm Hash digest
SHA256 9bd6f955c1d60e063112af26a74c6f59542459988045aa2540344bbeb8d8c2c7
MD5 a8a5ee9ecae0294ddb81a9577e5c4ba2
BLAKE2b-256 4ce33c960c80a6d9f0883734acc71b03263663066f164e7a91c68ad4813eb5bf

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page