A modular preprocessing package for Pandas Dataframe
Project description
🥧ReciPys🐍
The ReciPys package is a preprocessing framework operating on Pandas dataframes. The operation of this package is inspired by the R-package recipes. This package allows the user to apply a number of extensible operations for imputation, feature generation/extraction, scaling, and encoding. It operates on modified Dataframe objects from the established data science package Pandas.
Installation
You can install ReciPys from pip using:
pip install recipies
Note that the package is called
recipies
and notrecipys
on pip due to a name clash with an existing package.
You can install ReciPys from source to ensure you have the latest version:
conda env update -f environment.yml
conda activate recipys
pip install -e .
Note that the last command installs the package called
recipies
.
Usage
To define preprocessing operations, one has to supply roles to the different columns of the Dataframe. This allows the user to create groups of columns which have a particular function. Then, we provide several "steps" that can be applied to the datasets, among which: Historical accumulation, Resampling the time resolution, A number of imputation methods, and a wrapper for any Scikit-learn preprocessing step. We believe to have covered any basic preprocessing needs for prepared datasets. Any missing step can be added by following the step interface.
📄Paper
If you use this code in your research, please cite the following publication:
@article{vandewaterYetAnotherICUBenchmark2023,
title = {Yet Another ICU Benchmark: A Flexible Multi-Center Framework for Clinical ML},
shorttitle = {Yet Another ICU Benchmark},
url = {http://arxiv.org/abs/2306.05109},
language = {en},
urldate = {2023-06-09},
publisher = {arXiv},
author = {van de Water, Robin and Schmidt, Hendrik and Elbers, Paul and Thoral, Patrick and Arnrich, Bert and Rockenschaub, Patrick},
month = jun,
year = {2023},
note = {arXiv:2306.05109 [cs]},
keywords = {Computer Science - Machine Learning},
}
This paper can also be found on arxiv: https://arxiv.org/pdf/2306.05109.pdf
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
Built Distribution
File details
Details for the file recipies-0.1.1.tar.gz
.
File metadata
- Download URL: recipies-0.1.1.tar.gz
- Upload date:
- Size: 7.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.16
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e511f3431b2e8626e07b5c5be3e1f6c7fda5b7535c1827884cddb68fa39d5178 |
|
MD5 | 31e88e07c11399ab24fb71834ec7493e |
|
BLAKE2b-256 | 02e33ec1f0e3a636b78ec705acdd945f687238c4dd1e5376d78dd2a667ad4202 |
File details
Details for the file recipies-0.1.1-py3-none-any.whl
.
File metadata
- Download URL: recipies-0.1.1-py3-none-any.whl
- Upload date:
- Size: 3.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.16
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c4d4ea69ff382588bbe7ba80e6172a5c230d19e73fcdce91d09641e45fb284ba |
|
MD5 | af73ee9a2f5526319e7f79ccc964f175 |
|
BLAKE2b-256 | 9b516a08188c035333000deacc3a90faf92a0c9d5fe86963a259c2f30c950f73 |