Skip to main content

Scale a variable into an open interval (0,1) whereas values within a given lower and upper percentile maintain a linear relation, and outlier saturate towards the interval limits.

Project description

Build Status Binder

pctl_scale

Scale a variable into an open interval (0,1) whereas values within a given lower and upper percentile maintain a linear relation, and outlier saturate towards the interval limits.

This scaling functions was developed with ratio-scale data in mind (i.e. it has a natural zero value).

Table of Contents

Installation

The pctl_scale git repo is available as PyPi package

pip install pctl_scale

Usage

Check the examples folder for notebooks.

Commands

  • Check syntax: flake8 --ignore=F401
  • Run Unit Tests: python -W ignore -m unittest discover
  • Remove .pyc files: find . -type f -name "*.pyc" | xargs rm
  • Remove __pycache__ folders: find . -type d -name "__pycache__" | xargs rm -rf
  • Upload to PyPi with twine: python setup.py sdist && twine upload -r pypi dist/*

Debugging

  • Notebooks to profile python code are in the profile folder

Support

Please open an issue for support.

Contributing

Please contribute using Github Flow. Create a branch, add commits, and open a pull request.

Project details


Download files

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

Files for pctl-scale, version 0.1.1
Filename, size File type Python version Upload date Hashes
Filename, size pctl_scale-0.1.1.tar.gz (52.9 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page