#112112th of 242 in ML frameworks and libraries
category_encoders
scikit-learn transformers that encode categorical columns as numeric features
- Stars
- 2.5k
- License
- BSD-3-Clause
- Last commit
- Oct 2026
- Last release
- Oct 2026
- Language
- Python
2,479 on 25 Apr 20262,510 on 14 Nov 2026
From GitHub's daily star counts.
Checked on GitHub.
Overview
A Python library of scikit-learn-compatible transformers that convert categorical variables to numbers. It covers unsupervised methods (one-hot, binary, BaseN, hashing, count, ordinal, contrast codings) and supervised ones (target, CatBoost, leave-one-out, James-Stein, weight of evidence, GLMM). Encoders accept numpy arrays and pandas DataFrames and work inside sklearn pipelines.
Who it is for: Data scientists preprocessing categorical features in scikit-learn pipelines
Strengths
- About 23 encoding methods behind one sklearn transformer API
- Works with numpy arrays and pandas DataFrames, and drops into sklearn pipelines
- NestedCVWrapper and PolynomialWrapper add overfitting control and polynomial target support
- Each method cites a reference, and the repo includes examples and benchmarks
Weaknesses
- Supervised encoders need fit_transform on training data; fit().transform() can give different results
- GLMMEncoder needs the optional statsmodels dependency via the glmm extra
- Requires Python 3.11 or newer
- Tabular preprocessing only; no model training or serving
What it needs
- no GPU
- Needs numpy, pandas, scikit-learn, scipy, statsmodels (optional, for GLMMEncoder)
What changed
From the release notes. No flag means the note does not say so, not that the upgrade is safe.
Also in ML frameworks and libraries
See all 242| Rank | Project | Score |
|---|---|---|
| 1 | transformersModel-definition library for pretrained text, vision, audio and multimodal models | 94 out of 100 |
| 2 | ultralyticsPython library and CLI for training and running YOLO vision models | 94 out of 100 |
| 3 | pytorch-image-modelsPyTorch library of image models, pretrained weights and training scripts | 94 out of 100 |
| #4 | pytorchPython tensor library with GPU support and tape-based autograd | 93 out of 100 |
| #5 | supervisionPython toolkit for loading, annotating and counting computer vision detections | 92 out of 100 |