Optimised tools for group-indexing operations: aggregated sum and more.
Project description
This package consists of a couple of optimised tools for doing things that can roughly be considered “group-indexing operations”. The most prominent tool is aggregate.
aggregate takes an array of values, and an array giving the group number for each of those values. It then returns the sum (or mean, or std, or any, …etc.) of the values in each group. You have probably come across this idea before, using matlab accumarray, pandas groupby, or generally MapReduce algorithms and histograms.
There are different implementations of aggregate provided, based on plain numpy, numba and weave. Performance is a main concern, and so far we comfortably beat similar implementations in other packages (check the benchmarks).
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 numpy_groupies-0.9.19-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 08755e2f19042dc310e0b7c3afbadae195632d32923425bdd3aeb4bb587727e3 |
|
MD5 | b701e6f501273a078f537dd002657215 |
|
BLAKE2b-256 | cfce6082849ff2b9465666c756e2df0f5a92a2cc9279ffb4a46f44897348b718 |