Skip to main content

One-Hot encoder with sklearn-ish API interface that process mixed string and numeric labels directly.

Project description

Build Status Binder

onehot.OneHotDummy

One-Hot encoder with sklearn-ish API interface that process mixed string and numeric labels directly.

onehot.OneHotDummy does basically the same as LabelEncoder and OneHotEncoder combined. It is also inspired by pandas.get_dummies and in particular its ease of use.

Table of Contents

Installation

The onehot git repo is available as PyPi package

pip install onehot

Usage

Check the examples folder for notebooks.

Commands

  • Check syntax: flake8 --ignore=F401
  • Remove .pyc files: find . -type f -name "*.pyc" | xargs rm
  • Remove __pycache__ folders: find . -type d -name "__pycache__" | xargs rm -rf
  • Upload to PyPi: python setup.py sdist upload -r pypi
  • Upload to PyPi with twine: python setup.py sdist && twine upload -r pypi dist/*

Debugging

  • Notebooks to profile python code are in the profile folder

Support

Please open an issue for support.

Contributing

Please contribute using Github Flow. Create a branch, add commits, and open a pull request.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

onehot-0.1.2.tar.gz (3.7 kB view details)

Uploaded Source

File details

Details for the file onehot-0.1.2.tar.gz.

File metadata

  • Download URL: onehot-0.1.2.tar.gz
  • Upload date:
  • Size: 3.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.6.2

File hashes

Hashes for onehot-0.1.2.tar.gz
Algorithm Hash digest
SHA256 1e3f63dc79ace138567efd460c859d467bde0c0916c9f960339db3e990a8ad66
MD5 22ac5becd250336d5d90e7bd39ad81aa
BLAKE2b-256 76b43e7f3f9ecb1723c4e205287d525fafde10ac1e0771b209ca624f37461d08

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page