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!
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.0.tar.gz
.
File metadata
- Download URL: slice-aggregator-0.1.0.tar.gz
- Upload date:
- Size: 4.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b29ae767a9cf3e6d02b2e7a799355e960caf68d93d9d726ed91b3f22c0678d0a |
|
MD5 | 4f77be46ca34b6ca8045067940d43be9 |
|
BLAKE2b-256 | fd4b24fc0b9d57f1c4661de7401db56bb934360e0df25b14091c3c9e23ee8f96 |