Skip to main content

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


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)

Uploaded Source

Built Distribution

shirokumas-0.0.1-py3-none-any.whl (12.6 kB view hashes)

Uploaded Python 3

Supported by

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