Skip to main content

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.

Metadata

Release files for pctl-scale 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pctl-scale 0.1.1
File Size Uploaded
pctl_scale-0.1.1.tar.gz 52.9 kB Details

Release files / pctl_scale-0.1.1.tar.gz

Download URL pctl_scale-0.1.1.tar.gz
Size 52.9 kB
Tags Source
SHA-256 checksum
How to use checksums
5c091a91026d3793d4b1ef4f5e08fbc2d9e32dffdd05d183a46fd8558aec468a
BLAKE2b-256 checksum
How to use checksums
362bab1d8be4696c62a989e213f14a25339ee5944c0e75ae8e87f4567b36a593
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/40.5.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.2

Release history Release notifications | RSS feed

This release

0.1.1 This release

1 release file

0.1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page