My package from github repo
Project description
woeBinningPandas
The basis of this code was taken woeBinning code (https://github.com/cran/woeBinning/blob/master/R/woe.binning.R) and changed from R to Python.
Used programs versions
Spyder (Python 3.7)
Pandas 0.23.4
Used Python libraries
import pandas as pd
import numpy as np
import math
import warnings
import copy
Using
Set your variable CSV file
yourvariable = pd.read_csv('Yourfile.csv')
Set the df variable and specify the column names from your CSV file, which you want to use.
df = yourvariable[['columnnames1', 'columnnames2','columnnames3']]
At the end of the code in the function call woe_binning set the values of the arguments
#woe_binning (df, target_var, pred_var, min_perc_total, min_perc_class, stop_limit, abbrev_fact_levels, event_class)
woe_binning(df, 'column_names_with_0_or_1', 'column_names_with_numbers_or_factors', 0.05, 0, 0.1, 50, 'bad')
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 Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Close
Hashes for woeBinningPandas-1.5-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 02a5b4fa399706295c562e7648c6fa36cb7c6d8ffea56cf78f999c616dae2a74 |
|
MD5 | 1f815cd7436804c3958a1a6c032257a2 |
|
BLAKE2b-256 | 4c224ba7ff21c207e692855175912e8560c7c04540d6d998d2808d56c8f57615 |