A set of scikit-learn style transformers for Polars
Project description
Shirokumas
A set of scikit-learn style transformers for Polars. The transformers have the following property:
- Support for polars DataFrame as an input and output
- Can explicitly configure which columns will be encoded
How to install
$ pip install git+https://github.com/momijiame/shirokumas.git
How to use
import shirokumas as sk
encoder = sk.AggregateEncoder(...)
encoder = sk.CountEncoder(...)
encoder = sk.NullEncoder(...)
encoder = sk.OneHotEncoder(...)
encoder = sk.OrdinalEncoder(...)
encoder = sk.TargetEncoder(...)
train_x, train_y, test_x = ...
encoder.fit(train_x, train_y)
encoded_train_x = encoder.transform(train_x, train_y)
encoded_test_x = encoder.transform(test_x)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
shirokumas-0.0.1.tar.gz
(15.4 kB
view hashes)
Built Distribution
shirokumas-0.0.1-py3-none-any.whl
(12.6 kB
view hashes)
Close
Hashes for shirokumas-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ef65ef6ba2ecbd47629fd3098ee9645de4029f07178b54b260f778f71002b0c2 |
|
MD5 | c827836690673a923ef836f8316f46b5 |
|
BLAKE2b-256 | 456aec2b9200e24253e988af23ad984a69d674a4e823705c710219c2aaeef9a5 |