A package for running data analyses around credit risk.
Project description
pycredits
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
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
File details
Details for the file pycredits-0.0.2.tar.gz
.
File metadata
- Download URL: pycredits-0.0.2.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
Algorithm | Hash digest | |
---|---|---|
SHA256 | ea3dc4ed4a7700b0586216b8812c663c51086e899b705d2214420a08ed1b9d1d |
|
MD5 | a8df8d8aeac4d26d0aed2fa0beedc1d4 |
|
BLAKE2b-256 | 565722885216eb4c7bc213529434643da683044816f75c3e6ad4f4bde2cb2620 |
File details
Details for the file pycredits-0.0.2-py3-none-any.whl
.
File metadata
- Download URL: pycredits-0.0.2-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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8f1280541b9bf1bfd013e361c219a39ebb6d579d2f9807abb0d0b7db86a22f2a |
|
MD5 | aea9f9ec6551c0b42f4ae33c236cc445 |
|
BLAKE2b-256 | 8ac65850ef96b2540dc663a47c778b19a6171fdc6a1bd3b818dab6ff7b6fc574 |