Skip to main content

Data frame support and feature traceability for `scikit-learn`.

Project description

sklearndf is an open source library designed to address a common need with scikit-learn: the outputs of transformers are numpy arrays, even when the input is a data frame. However, to inspect a model it is essential to keep track of the feature names.

To this end, sklearndf enhances scikit-learn’s estimators as follows:

  • Preserve data frame structure:

    Return data frames as results of transformations, preserving feature names as the column index.

  • Feature name tracing:

    Add additional estimator properties to enable tracing a feature name back to its original input feature; this is especially useful for transformers that create new features (e.g., one-hot encode), and for pipelines that include such transformers.

  • Easy use:

    Simply append DF at the end of your usual scikit-learn class names to get enhanced data frame support!

pypi conda python_versions code_style made_with_sphinx_doc license_badge

License

sklearndf is licensed under Apache 2.0 as described in the LICENSE file.

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

sklearndf-2.3.0.tar.gz (152.8 kB view details)

Uploaded Source

Built Distribution

sklearndf-2.3.0-py3-none-any.whl (73.8 kB view details)

Uploaded Python 3

File details

Details for the file sklearndf-2.3.0.tar.gz.

File metadata

  • Download URL: sklearndf-2.3.0.tar.gz
  • Upload date:
  • Size: 152.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.31.0

File hashes

Hashes for sklearndf-2.3.0.tar.gz
Algorithm Hash digest
SHA256 99560f99fa8bce30c1281851316b57e9ca91c1bff2a315660d301a560f725341
MD5 d5826ea6a3ad3c89e2f0072c356dce2b
BLAKE2b-256 e7c44fd729422ba1e71aed1ddb226930e93655156c1a07f462a2101814f730d2

See more details on using hashes here.

File details

Details for the file sklearndf-2.3.0-py3-none-any.whl.

File metadata

  • Download URL: sklearndf-2.3.0-py3-none-any.whl
  • Upload date:
  • Size: 73.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.31.0

File hashes

Hashes for sklearndf-2.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 11cfda08c1b463c4c5fe454d241f28043d0cb39407cc4b339233c52dbe902d36
MD5 3a7766573677f01935bc27a9988fecec
BLAKE2b-256 4907d11cc7ce22a13c63dad0453628d89d85b3c71692a9a1cc498f4f449201e9

See more details on using hashes here.

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