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.10.tar.gz (43.6 kB view details)

Uploaded Source

File details

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

File metadata

  • Download URL: numpy_groupies-0.9.10.tar.gz
  • Upload date:
  • Size: 43.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/38.4.0 requests-toolbelt/0.8.0 tqdm/4.19.5 CPython/2.7.12

File hashes

Hashes for numpy_groupies-0.9.10.tar.gz
Algorithm Hash digest
SHA256 a6835c252b7bd489e0f701f8bf5bc880c647ef251e3b434998b95a8aecc9b68a
MD5 833287f4361fb96ee257cffaf356ec76
BLAKE2b-256 57ae18217b57ba3e4bb8a44ecbfc161ed065f6d1b90c75d404bd6ba8d6f024e2

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