Skip to content

Scikit-learn label binarizer with support for missing values

License

Notifications You must be signed in to change notification settings

gsmafra/sklearn-dummies

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

63 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CircleCI codecov Requirements Status

sklearn-dummies

Scikit-learn label binarizer with support for missing values

Usage example

import pandas as pd
import sklearn_dummies as skdm

df = pd.DataFrame(['A', 'B', None, 'A'], columns=['val'])

df_dummy = skdm.DataFrameDummies().fit_transform(df)

Result:

val_A val_B
0 1.0 0.0
1 0.0 1.0
2 NaN NaN
3 1.0 0.0

Installing

Sklearn-dummies is available in PyPI. Install via pip:

pip install sklearn_dummies

Docs

They're here

About

Scikit-learn label binarizer with support for missing values

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages