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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d35d4954bcd556925ade16ea90246c570c5e88225adf69ffd157330650aba06d
|
|
| MD5 |
1ccbfd7b983f53ac233a37198d09069a
|
|
| BLAKE2b-256 |
5b91dc951cca90cda27566ad003be7a02aee589bfe20716dca0866b646c7e649
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
15d92bbf824d9601353dc0f6e92c8a202faff85cf15ccd044c07f1c584cff924
|
|
| MD5 |
8ee390da330fb8ff2a20df9f984e4b33
|
|
| BLAKE2b-256 |
fe67ec877921ec02fa477838ed5942995481f67d3da4a7be70bad598c5698259
|