A library for aggregating values assigned to indices by slices and the other way around
Project description
A library for aggregating values assigned to indices by slices
>>> import slice_aggregator
>>> a = slice_aggregator.ixs_by_slices()
>>> a[-5] += 1
>>> a[10] -= 2.5
>>> a[-10:]
-1.5
and the other way around
>>> import slice_aggregator
>>> a = slice_aggregator.slices_by_ixs()
>>> a[:-5] += 1
>>> a[-10:10] -= 2.5
>>> a[-10]
-1.5
Read the docs to find out more!
Installation
pip install slice-aggregator
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
File details
Details for the file slice-aggregator-0.1.1.tar.gz
.
File metadata
- Download URL: slice-aggregator-0.1.1.tar.gz
- Upload date:
- Size: 4.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9f5ece4117386a3774dae178fc5e096fad5d7a870d7641e19f365256d6dc9253 |
|
MD5 | e50865ad648bce2766896b91fa5714ad |
|
BLAKE2b-256 | 5135eae9aed11a8c8ad8cbb6c1e940053812b8e06291544d0614f67322ae7bc3 |