Skip to main content

A package for running data analyses around credit risk.

Project description

pycredits

codecov

pycredits is DSCI310 Group 12's package for conducting data analyses related to credit risk. This package offers functions designed to facilitate common tasks in credit risk analysis, including data preprocessing, exploratory data analysis, data cleaning, and hyper-parameter tuning. Building off of packages matplotplib and scikit-learn, pycredits streamlines the use of scikit-learn's functions as well as simplifys the creation of specific matplotlib plots relevant to credit analysis.

Installation

$ pip install pycredits

Usage

pycredits provides several useful functions for data preprocessing and analysis in understanding credit risk, such as, preprocess data, create histograms, transform labels, and create parameter grids for grid search.

from pycredits import preprocess_data, column_histogram, map_labels_to_binary, param_grid_for_grid_search
import matplotlib.pyplot as plt

# Preprocess data
X_transformed, y, preprocessor = preprocess_data(df, numeric_features, categorical_features)

# Create histogram for a column
column_plot = column_histogram(fig_width, fig_height, data_frame, column_name)
plt.show()

# Transform label values
y_transformed = map_labels_to_binary(y)

# Create parameter grid for grid search
param_grid = param_grid_for_grid_search(n_estimators_range, max_depth_range)

Contributing

Interested in contributing? Check out the contributing guidelines. Please note that this project is released with a Code of Conduct. By contributing to this project, you agree to abide by its terms.

License

pycredits was created by Jade Bouchard, Shahrukh Islam Prithibi, Sophie Yang, and Yovindu Don. It is licensed under the terms of the MIT license.

Credits

pycredits was created with cookiecutter and the py-pkgs-cookiecutter template.

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

pycredits-0.0.3.tar.gz (4.9 kB view details)

Uploaded Source

Built Distribution

pycredits-0.0.3-py3-none-any.whl (6.3 kB view details)

Uploaded Python 3

File details

Details for the file pycredits-0.0.3.tar.gz.

File metadata

  • Download URL: pycredits-0.0.3.tar.gz
  • Upload date:
  • Size: 4.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.2

File hashes

Hashes for pycredits-0.0.3.tar.gz
Algorithm Hash digest
SHA256 d35d4954bcd556925ade16ea90246c570c5e88225adf69ffd157330650aba06d
MD5 1ccbfd7b983f53ac233a37198d09069a
BLAKE2b-256 5b91dc951cca90cda27566ad003be7a02aee589bfe20716dca0866b646c7e649

See more details on using hashes here.

File details

Details for the file pycredits-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: pycredits-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 6.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.2

File hashes

Hashes for pycredits-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 15d92bbf824d9601353dc0f6e92c8a202faff85cf15ccd044c07f1c584cff924
MD5 8ee390da330fb8ff2a20df9f984e4b33
BLAKE2b-256 fe67ec877921ec02fa477838ed5942995481f67d3da4a7be70bad598c5698259

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