skrub
skrub (formerly dirty_cat) is a Python library that facilitates prepping your tables for machine learning.
If you like the package, spread the word and ⭐ this repository! You can also join the discord server.
Website: https://skrub-data.org/
What can skrub do?
The goal of skrub is to bridge the gap between tabular data sources and machine-learning models.
skrub provides high-level tools for joining dataframes (Joiner, AggJoiner, …), encoding columns (MinHashEncoder, ToCategorical, …), building a pipeline (TableVectorizer, tabular_learner, …), and more.
>>> from skrub.datasets import fetch_employee_salaries >>> dataset = fetch_employee_salaries() >>> df = dataset.X >>> y = dataset.y >>> df.iloc[0] gender F department POL department_name Department of Police division MSB Information Mgmt and Tech Division Records... assignment_category Fulltime-Regular employee_position_title Office Services Coordinator date_first_hired 09/22/1986 year_first_hired 1986
>>> from sklearn.model_selection import cross_val_score
>>> from skrub import tabular_learner
>>> cross_val_score(tabular_learner('regressor'), df, y)
array([0.89370447, 0.89279068, 0.92282557, 0.92319094, 0.92162666])
See our examples.
Installation
skrub can easily be installed via pip or conda. For more installation information, see the installation instructions.
Contributing
The best way to support the development of skrub is to spread the word!
Also, if you already are a skrub user, we would love to hear about your use cases and challenges in the Discussions section.
To report a bug or suggest enhancements, please open an issue and/or submit a pull request.
Metadata
Release files for skrub 0.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| skrub-0.3.0.tar.gz | 6.0 MB | Without provenance | Details for skrub-0.3.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| skrub-0.3.0-py3-none-any.whl | Python 3 | none | any | Details for skrub-0.3.0-py3-none-any.whl |
Total release size: 6.3 MB
Release files / skrub-0.3.0.tar.gz
| Download URL | skrub-0.3.0.tar.gz |
|---|---|
| Size | 6.0 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ef12c46b69918ec596052586ebf83c041bd0b9d900b2c5a5bd241c00db38249e
|
|
BLAKE2b-256 checksum How to use checksums |
68b5d99492a0c4f1c79964c42cade7ec3f04af1ec4d7c854c638ea9d343a2b5e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.11.8
|
Release files / skrub-0.3.0-py3-none-any.whl
| Download URL | skrub-0.3.0-py3-none-any.whl |
|---|---|
| Size | 284.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7becfc7c8101e04124af3d5e1f4bef02b52e9da4131d50543e1c3d26ff9992b4
|
|
BLAKE2b-256 checksum How to use checksums |
6bd7d6ed2a0b9b283e0422fc50ea178b34be9022c4e64edcc2c5c2dc3779797a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.11.8
|
Security for skrub 0.3.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.