semvec/pypi-packages huggingface dataset:
assistants 2.1.0
Reporting assistants for scouts
License: MIT
Requires Python: >=3.9
Keywords: reporting,assistants,scouts

# assistants

The ***assistants*** project aims to provide useful reporting tools for scouts.

## Where to get it

The source code for the project is hosted on GitHub at
[the-scouts/assistants](https://github.com/the-scouts/assistants)

## Dependencies

- [pandas](https://github.com/pandas-dev/pandas/) - for data wrangling
- [pyarrow](https://github.com/apache/arrow/tree/master/python/) - for fast on-disk storage
- [openpyxl](https://foss.heptapod.net/openpyxl/openpyxl/) - for writing to excel workbooks
- [compass-interface-core](https://github.com/the-scouts/compass-interface-core/) - for integrating with Compass

## License

***assistants*** is naturally
[open source](https://github.com/the-scouts/assistants) and is
licensed under the **[MIT license](https://choosealicense.com/licenses/mit/)**.
pdrle 0.5.0
python package for run length encoding on pandas Series
License: MIT

# pdrle

## Installation

```console
pip install pdrle
```

## Usage

```python
import pdrle
import pandas

x = pandas.Series(["a", "a", "b", "b", "a", "a", "a", "c"])

rle = pdrle.encode(x)
rle
#   vals  runs
# 0    a     2
# 1    b     2
# 2    a     3
# 3    c     1

y = pdrle.decode(rle.vals, rle.runs)
y
# 0    a
# 1    a
# 2    b
# 3    b
# 4    a
# 5    a
# 6    a
# 7    c
# dtype: object

pandas.concat({"x": x, "id": pdrle.get_id(x)}, axis=1)
#    x  id
# 0  a   0
# 1  a   0
# 2  b   1
# 3  b   1
# 4  a   2
# 5  a   2
# 6  a   2
# 7  c   3

pandas.concat({"x": x, "sn": pdrle.get_sn(x)}, axis=1)
#    x  sn
# 0  a   0
# 1  a   1
# 2  b   0
# 3  b   1
# 4  a   0
# 5  a   1
# 6  a   2
# 7  c   0
```