{"categories":[{"label":"Libraries","url":"https://skillfed.io/packages/category/software-development-libraries/6"},{"label":"Scientific/Engineering","url":"https://skillfed.io/packages/category/scientific-engineering/4"}],"enrichment":{"capability":"Provides optimized group-indexing operations on arrays, with `aggregate` as the primary tool for computing reductions (sum, mean, std, etc.) across labeled groups of values.","skillfed_tags":["array-aggregation","group-operations","scientific-computing"],"use_cases":["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.)"],"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'.\n\nThe 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.","worth_installing":"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."},"id":"numpy-groupies","links":{"html":"https://skillfed.io/packages/numpy-groupies","md":"https://skillfed.io/packages/numpy-groupies.md","pypi":"https://pypi.org/project/numpy-groupies/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2025-05-22","license_spdx":null,"license_treatment":"permissive","name":"numpy-groupies","python_support":"supports_current","summary":"Optimised tools for group-indexing operations: aggregated sum and more."},"popularity":{"monthly_downloads":357042,"position":7276,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"0.11.3"}
