Skip to main content

python-rle

Run-length encoding (wikipedia link) for data analysis in Python. Requires joblib to enable parallelized encoding. Run pip install python-rle to install.

Usage

Motivation

Base R contains a simple rle function that "computes the lengths and values of runs of equal values in a vector", as described by its docstring. I found it useful for calculating streaks in collected data, and is especially wonderful for compiling and summarizing categorical data that describes status over time. I wasn't able to find an implementation of this in Python, other than the myriad of code examples that use run-length encoding to demonstrate data compression. Hence this little utility.

Metadata

Release files for python-rle 0.0.2

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

Source distribution (sdist)

Source distribution for python-rle 0.0.2
File Size Uploaded
python-rle-0.0.2.tar.gz 4.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for python-rle 0.0.2
File Interpreter ABI Platform
python_rle-0.0.2-py3-none-any.whl Python 3 none any Details

Total release size: 10.2 kB

Release files / python-rle-0.0.2.tar.gz

Download URL python-rle-0.0.2.tar.gz
Size 4.2 kB
Tags Source
SHA-256 checksum
How to use checksums
8015635f2f19e2aa03606220d0e86fab20769204b6311529ea6d044fde9ffe72
BLAKE2b-256 checksum
How to use checksums
e1d12ac06222bf36533da44aada3cdb7f5ece6fb48a619e8c6df57cfa161104c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0.post20191030 requests-toolbelt/0.9.1 tqdm/4.40.2 CPython/3.7.5

Release files / python_rle-0.0.2-py3-none-any.whl

Download URL python_rle-0.0.2-py3-none-any.whl
Size 6.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e8947a4f5de0f163bb69351349b7e069ad16706903f54d9b411117b8669eb6fc
BLAKE2b-256 checksum
How to use checksums
765f5368bfb7aaa5a056623a56bd20bb85006f3e68e1e8db751cb9dbb389ffbf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0.post20191030 requests-toolbelt/0.9.1 tqdm/4.40.2 CPython/3.7.5

Release history Release notifications | RSS feed

0.0.3

2 release files

This release

0.0.2 This release

2 release files

0.0.1

2 release files

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