Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

numpy_groupies-0.9.8.4.tar.gz (43.5 kB view details)

Uploaded Source

File details

Details for the file numpy_groupies-0.9.8.4.tar.gz.

File metadata

File hashes

Hashes for numpy_groupies-0.9.8.4.tar.gz
Algorithm Hash digest
SHA256 0009490766b914af14814b37c5199cbcc1381a0de9aca54acd8e286ab7cf23de
MD5 67049ae68e9662dffbf22d1d1c6c646b
BLAKE2b-256 5f88de5f942035673bd203ea263a0e7527733090d69accdf520bbacff86fd4c7

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page