Skip to main content

A modular preprocessing package for a Pandas Dataframe.

Project description

logo

🥧ReciPys🐍

CI Black Platform License PyPI version shields.io arXiv

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 not recipys 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

recipies-0.1.3.tar.gz (15.9 kB view details)

Uploaded Source

Built Distribution

recipies-0.1.3-py3-none-any.whl (13.3 kB view details)

Uploaded Python 3

File details

Details for the file recipies-0.1.3.tar.gz.

File metadata

  • Download URL: recipies-0.1.3.tar.gz
  • Upload date:
  • Size: 15.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.7

File hashes

Hashes for recipies-0.1.3.tar.gz
Algorithm Hash digest
SHA256 dc41db5c6a7adb1c922e67d81a6fc17f0cffebead83163ec45a7d259c6a134d8
MD5 2d7fe8b66e1923e22e23da885d394de5
BLAKE2b-256 2f97bb0a79b21e5ae46bc96a7a1b47c4f0bdec41e19f3bf641055c3e5af74bd9

See more details on using hashes here.

File details

Details for the file recipies-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: recipies-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 13.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.7

File hashes

Hashes for recipies-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 ab539fe1237222c9096d76111adb8517d7aeb2b701dbdb7411f32c0e0fd95c58
MD5 56a3c11975b7d8ea6537aba5cdd67156
BLAKE2b-256 9fc7a724e213a14ec6674147860452a6f142a8d7d77f569f26e9f8563f4053c1

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