CMD + K

category_encoders

Anaconda Verified

A collection sklearn transformers to encode categorical variables as numeric

Installation

To install this package, run one of the following:

Conda
$conda install main::category_encoders

Usage Tracking

2.8.1
2.8.0
2.6.3
2.6.1
2.6.0
5 / 8 versions selected
Downloads (Last 6 months): 0

Description

A set of scikit-learn-style transformers for encoding categorical variables into numeric with different techniques. While ordinal, one-hot, and hashing encoders have similar equivalents in the existing scikit-learn version, the transformers in this library all share a few useful properties: - First-class support for pandas dataframes as an input (and optionally as output) - Can explicitly configure which columns in the data are encoded by name or index, or infer non-numeric columns regardless of input type - Can drop any columns with very low variance based on training set optionally - Portability: train a transformer on data, pickle it, reuse it later and get the same thing out. - Full compatibility with sklearn pipelines, input an array-like dataset like any other transformer

About

Summary

A collection sklearn transformers to encode categorical variables as numeric

Last Updated

Jul 25, 2025 at 16:03

License

BSD-3-Clause

Total Downloads

3.4K

Supported Platforms

macOS-arm64
linux-64
linux-aarch64
macOS-64
win-64

Unsupported Platforms

linux-ppc64le Last supported version: 2.6.1
noarch Last supported version: 2.2.2
linux-s390x Last supported version: 2.8.0