Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gsmafra/sklearn-dummies
Scikit-learn label binarizer with support for missing values
https://github.com/gsmafra/sklearn-dummies
data-science machine-learning pandas python scikit-learn
Last synced: about 1 month ago
JSON representation
Scikit-learn label binarizer with support for missing values
- Host: GitHub
- URL: https://github.com/gsmafra/sklearn-dummies
- Owner: gsmafra
- License: mit
- Created: 2017-02-20T23:02:42.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2022-12-08T01:30:54.000Z (about 2 years ago)
- Last Synced: 2024-11-15T10:52:58.796Z (2 months ago)
- Topics: data-science, machine-learning, pandas, python, scikit-learn
- Language: Python
- Size: 40 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](http://readthedocs.org/projects/sklearn-dummies/)
[![CircleCI](https://circleci.com/gh/gsmafra/sklearn-dummies.svg?style=shield)](https://circleci.com/gh/gsmafra/sklearn-dummies)
[![codecov](https://codecov.io/gh/gsmafra/sklearn-dummies/branch/master/graph/badge.svg)](https://codecov.io/gh/gsmafra/sklearn-dummies)
[![Requirements Status](https://requires.io/github/gsmafra/sklearn-dummies/requirements.svg?branch=master)](https://requires.io/github/gsmafra/sklearn-dummies/requirements/?branch=master)# sklearn-dummies
Scikit-learn label binarizer with support for missing values## Usage example
```
import pandas as pd
import sklearn_dummies as skdmdf = 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](https://pypi.python.org/pypi/sklearn_dummies). Install via pip:
```
pip install sklearn_dummies
```## Docs
[They're here](http://sklearn-dummies.readthedocs.io/en/latest/index.html)