{"categories":[{"label":"Mathematics","url":"https://skillfed.io/packages/category/scientific-engineering-mathematics"}],"enrichment":{"capability":"ndindex provides a uniform API for representing and manipulating NumPy array indices\u2014slices, integers, ellipses, None, arrays, and tuples\u2014with semantics guaranteed to match NumPy's behavior.","skillfed_tags":["numpy-indexing","array-manipulation"],"use_cases":["Canonicalize and simplify slice objects to their minimal equivalent form for a given array shape","Compute the output shape of an array after indexing without materializing the array itself","Check whether an index operation would produce an empty result before executing it","Validate and transform user-provided indices in array-processing libraries or frameworks","Implement index-aware optimizations in array computation engines"],"what_it_does":"ndindex is a library for working with array indices as first-class objects. Instead of treating slices, integers, ellipses, and other index types as separate, incompatible objects, ndindex wraps them in a uniform API so you can inspect, transform, and reason about them programmatically. It guarantees that all transformations match actual array indexing semantics\u2014meaning if you reduce or manipulate an index through ndindex, the result will behave identically to real array behavior.\n\nThe library is useful when you need to reason about array shapes and indices without materializing arrays, optimize index expressions, or verify that an index operation would succeed before executing it. It handles the full range of indexing: simple slices, negative indices, steps, ellipses, boolean masks, integer arrays, and nested tuples. For operations where array shape is known, ndindex can reduce complex indices to simpler equivalent forms.","worth_installing":"Yes, if you work with array indexing logic in libraries, frameworks, or tools that need to reason about indices without executing them. The library is well-maintained within its scope, has no dependencies, and carries no security vulnerabilities. However, the aging maintenance status (268 days since last release) means you should verify active support if you depend on frequent updates or encounter edge cases."},"id":"ndindex","links":{"html":"https://skillfed.io/packages/ndindex","md":"https://skillfed.io/packages/ndindex.md","pypi":"https://pypi.org/project/ndindex/"},"maintenance":{"status":"aging"},"meta":{"latest_release":"2025-11-19","license_spdx":null,"license_treatment":"permissive","name":"ndindex","python_support":"supports_current","summary":"A Python library for manipulating indices of ndarrays."},"popularity":{"monthly_downloads":3635994,"position":2549,"tier":"top_5000"},"security":{"n_vulnerabilities":0},"version":"1.10.1"}
