Category-encoders

Latest version: v2.8.0

Safety actively analyzes 706259 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 4 of 6

1.2.5

======

* Onehot transform returns same columns always
* Missing value and unknown handling now configurable in all relevant encoders

1.2.4

======

* Added more sophisticated missing value or unknown category handling to ordinal
* Passing through missing value config from onehot into ordinal
* Onehot will return an extra column when unknown categories are passed in if impute is used.
* Added BaseNEncoder to allow for more flexible alternatives to ordinal, onehot and binary.

1.2.3

======

* Full support for numpy arrays as input, not just dataframes.

1.2.2

======

* All encoders handle missing values and are tested for their handling
* Created a onehot encoder that follows the same conventions as the rest of the library instead of using sklearns.
* Did some basic benchmarking for data compression and memory usage, made some performance improvements
* Changed all docstrings to numpy style and added more documentation
* Moved all logic methods into staticmethods of the transformer classes themselves.
* Added more detailed checks for type and shape of input data in fit and transform
* Support input as list of lists, alongside numpy arrays and pandas dataframes.

1.2.1

======

* Better handling for missing values in hashing encoder

1.2.0

======

* Testing enhancements
* Hash type in hashing encoder now defaults to md5 using hashlib, but can be set to any valid hashlib hash

Page 4 of 6

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.