Run-length encoding for data analysis in Python
Project description
python-rle (Work in Progress!)
Run-length encoding (wikipedia link) for data analysis in Python. Requires joblib
to enable parallelized encoding. 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.
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
Hashes for python_rle-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5571c857b482037337f59d46295ca06942877fadb1de2adda4bc381c1d87788e |
|
MD5 | daaf697338f88763af303b2e66eb81a5 |
|
BLAKE2b-256 | e379006cd31117dd97398f27bb58de5cd39864f4f833e728af696e73689af909 |