$npx skillfedfor your agent

numpy-groupies

Optimised tools for group-indexing operations: aggregated sum and more.

Worth itPyPI LibrariesReleased May 2025357.0K downloads / mopermissive licensePure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — numpy_groupies-0.11.3-py3-none-any.whl
v0.11.3 · released 2025-05-22 · Python >=3.9 · 1 runtime deps: numpy

Yes. Low install friction, no mandatory dependencies, active maintenance, permissive license, and a focused API for group aggregation operations. Install if you need group-based array reductions without the overhead of pandas or other dataframe libraries. The 449-day gap since last release is notable but not disqualifying given the active repository and stable API.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Low friction: pure Python wheel with only numpy as an optional runtime dependency.
  • Last release 449 days ago; repository active with recent commits and 210 stars.

License · maintenance · safety

permissive license (permissive) — BSD 2-Clause permissive license. No restrictions on commercial or private use; redistribution requires retaining copyright notice and disclaimer.

last release 2025-05-22 (449 days) · last repo commit 2026-06-30 · 210 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 357,042 downloads/mo, #7,276 on PyPI

Verify before relying

pip install numpy_groupies

import numpy as np
import numpy_groupies as npg

group_idx = np.array([3, 0, 0, 1, 0, 3, 5, 5, 0, 4])
a = np.array([13.2, 3.5, 3.5, -8.2, 3.0, 13.4, 99.2, -7.1, 0.0, 53.7])
result = npg.aggregate(group_idx, a, func='sum', fill_value=0)
  • Whether all aggregation functions (sum, mean, std, min, max, etc.) are available in all backends or only in specific implementations
  • Performance characteristics and memory usage for large arrays or many groups
  • Whether the package is actively maintained or in maintenance-only mode given the 449-day gap since last release
Same gist for agents: .md · .json

What it is and what it does

numpy-groupies provides a small library of optimized tools for group-indexing operations on arrays. The core function, `aggregate`, takes an array of values and an array of group labels, then computes a reduction (sum, mean, standard deviation, min, max, or custom function) for each group. It also supports cumulative operations like cumsum and cumprod that preserve the input size, and boolean aggregations like 'all' and 'any'.

The package is conceptually similar to pandas groupby, MATLAB's accumarray, or the MapReduce paradigm. It handles various input shapes: 1D arrays with matching group indices, multidimensional arrays with axis-specific grouping, and 2D group index arrays for complex grouping patterns. The implementation is pure Python with numpy as an optional dependency, making it lightweight and easy to install.

Use it for

  • Compute statistics (sum, mean, variance) for data points belonging to labeled groups without loading a full dataframe library
  • Build histograms or frequency counts by aggregating values into bins defined by group indices
  • Perform cumulative operations within groups (e.g., running sum per group) while preserving input array size
  • Aggregate multidimensional scientific data along a specific axis by group membership
  • Handle NaN values selectively using nan-aware aggregation functions (nansum, nanmean, etc.)

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

Worth it

Yes.

Low install friction, no mandatory dependencies, active maintenance, permissive license, and a focused API for group aggregation operations. Install if you need group-based array reductions without the overhead of pandas or other dataframe libraries. The 449-day gap since last release is notable but not disqualifying given the active repository and stable API.

Install

numpy-groupies on PyPI

Before you install

Low friction: pure Python wheel with only numpy as an optional runtime dependency. Last release 449 days ago; repository active with recent commits and 210 stars.

License in practice

BSD 2-Clause permissive license. No restrictions on commercial or private use; redistribution requires retaining copyright notice and disclaimer.

Quickstart

pip install numpy_groupies

import numpy as np
import numpy_groupies as npg

group_idx = np.array([3, 0, 0, 1, 0, 3, 5, 5, 0, 4])
a = np.array([13.2, 3.5, 3.5, -8.2, 3.0, 13.4, 99.2, -7.1, 0.0, 53.7])
result = npg.aggregate(group_idx, a, func='sum', fill_value=0)

Verify before relying

  • Whether all aggregation functions (sum, mean, std, min, max, etc.) are available in all backends or only in specific implementations
  • Performance characteristics and memory usage for large arrays or many groups
  • Whether the package is actively maintained or in maintenance-only mode given the 449-day gap since last release

Package facts

Licensepermissive license permissive
Python supportSupports the current Python release >=3.9
Install frictionLow. Pure-Python wheel
Runtime dependencies
1 package
numpy
MaintenanceActively maintained 449 days since the last release
Last repo commit
First released
Downloads357,042 / month, #7,276 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Development Status :: 4 - BetaIntended Audience :: DevelopersIntended Audience :: Science/ResearchLicense :: OSI Approved :: BSD LicenseOperating System :: OS IndependentProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.9Topic :: Scientific/EngineeringTopic :: Software Development :: Libraries

Evidence: numpy_groupies-0.11.3-py3-none-any.whl

Tags

Capabilities
group aggregation numpyaccumarray pythongroupby operations arraysgroup indexing reductionnumpy aggregate by groupcumulative group operationslabeled array reduction
Topics
array-aggregationgroup-operationsscientific-computing
PyPI keywords
accumarrayaggregategroupbygroupingindexing

Let your AI agent find packages like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.

wish › “group aggregation numpy”

Give your agent the search over MCP, or paste the wish link into any chat.

More Libraries packages

urllib3 Worth it
PyPI · Libraries · released May 2026

urllib3 is an HTTP client library that provides thread-safe connection pooling, SSL/TLS verification, multipart file uploads, request retries, compression support, and proxy handling for Python applications.

MITpure Python · 3.10+
1.8Bdownloads / mo
requests Worth it
PyPI · Libraries · released May 2026

Requests is a Python HTTP library that simplifies sending HTTP/1.1 requests with automatic handling of headers, authentication, cookies, and response parsing.

Apache-2.0pure Python · 3.10+
1.8Bdownloads / mo
pluggy Worth it
PyPI · Libraries · released May 2025

Pluggy provides a plugin system that lets you define hook specifications and register implementations to be called in sequence, enabling extensible Python applications without tight coupling.

Install it if you're building an extensible application or framework.

MITpure Python · 3.9+aging
1.3Bdownloads / mo
python-dateutil Worth it
PyPI · Libraries · released Mar 2024

Provides parsing, arithmetic, and recurrence rule computation for dates and times, with timezone support and iCalendar RFC compliance.

Install it if you need to parse flexible date strings, compute relative dates, handle timezones, or work with recurrence rules—it's the de facto choice for these tasks.

Apache-2.0pure Python
1.2Bdownloads / mo
six With conditions
PyPI · Libraries · released Dec 2024

Six provides utility functions to write Python code that runs on both Python 2.7 and Python 3.3+, smoothing over language differences between the two versions.

MITpure Python
1.2Bdownloads / mo
pytest Worth it
PyPI · Libraries · released Jun 2026

pytest is a testing framework that lets you write test functions using plain assert statements and automatically discovers and runs them, with detailed failure reporting.

MITpure Python · 3.10+
1.1Bdownloads / mo

See also flox · ipfn · lovely-numpy · numbagg · Bottleneck · fast-array-utils · ndindex · snuggs · xarray · momentchi2