mrkeyoor.com_
Tue 10 Nov 02:38 UTC
Dataevaluationupdated 26 Oct 2026

numpy review

NumPy is a Python library for multidimensional arrays and calculations on them. It supplies broadcasting, linear algebra, Fourier transforms, and random-number routines so numerical applications can share one array representation.

+139stars / 7d
Verdict

Our NumPy build succeeded in 10 seconds, but pytest exited 3 with 2 collection/setup errors and no passing or failing tests, so our run cannot establish numerical correctness. Choose NumPy when your Python application needs multidimensional arrays and the mathematical routines its README documents. Contributors should resolve the recorded test-path problem before treating this checkout as verified.

We ran it

Lab card: what happened when we ran numpyScreenshot of numpy (numpy.org)
Install✓ · 899s36 packages · 38 MB
Build✓ · 10s
Tests✗ · 7s0 passed · 0 failed · 2 errors of 2 (pytest)
Known vulns0(pip-audit)
Repo8644 files~1,018,720 lines of source · 70.7 MB · 24 CI workflows

Answers from our run

Does numpy build from source?

Dependencies installed in 899 seconds (36 packages), and the build succeeded in 10 seconds. We cloned commit 70fa998 into a clean Debian container with 3 CPUs and no project-specific setup.

Do numpy's tests pass?

No. The project's own test command finished in 7 seconds and reported 0 passed, 0 failed, 2 collection errors (pytest).

Does numpy have known vulnerabilities in its dependencies?

pip-audit found none in the dependency tree at the time of our run.

Who should not use numpy?

Developers demanding a green generic pytest run from this checkout: our command exited 3 during collection before recording any passing or failing tests.

What are the alternatives to numpy?

pandas, JAX. Our NumPy build succeeded in 10 seconds, but pytest exited 3 with 2 collection/setup errors and no passing or failing tests, so our run cannot establish numerical correctness.

SetupN/AThe install and build succeeded, but the recorded command did not reach a numerical test result in a confirmed supported environment.
DocsN/AThe README and release notes were inspected, but coverage and accuracy across the full numerical API were not assessed.
CommunityN/ADated pushes and current pull requests show activity; support responsiveness and contributor experience were not measured.
MaturityN/ARelease activity was checked, but the sandbox recorded no passing or failing tests and did not assess numerical behavior.

Discussed on

  1. hnNumpy: Plan for dropping Python 2.7 support662 points
  2. hnWeld: Accelerating numpy, scikit and pandas as much as 100x with Rust and LLVM592 points
  3. hnNumPy receives first ever funding, thanks to Moore Foundation548 points
  4. hnNumPy Illustrated: The Visual Guide to NumPy336 points
  5. hnNumPy 1.16 is the last release to support Python 2.7240 points

Who it’s for

Python developers whose calculations operate on multidimensional numeric arrays.
Scientific-library authors connecting Python to C, C++, or Fortran code.
Contributors willing to follow project-specific guidance rather than assume repository-wide pytest discovery works.

Who it’s NOT for

Developers demanding a green generic pytest run from this checkout: our command exited 3 during collection before recording any passing or failing tests.
Analysts whose main problem is labeled tables and joins: pandas documents those operations directly, while NumPy centers on arrays.
Teams choosing an execution model around automatic differentiation and accelerators: JAX explicitly targets that combination. NumPy's README does not make the equivalent promise.

Setup reality

Our NumPy sandbox installed commit 70fa998 in 899 seconds, recording 36 dependencies and 38 MB on disk. The build succeeded in 10 seconds. Pytest exited 3 after 7 seconds with 0 passed, 0 failed, and 2 collection/setup errors. Pip-audit reported 0 known vulnerabilities.

The README supplies a post-install check through numpy.test() and names optional tools for specialized checks. The documented library workflow needs no hosted API credential. A contributor checkout and an application consuming a packaged library are different setup paths.

The October 11, 2026 sandbox had 3 CPUs and 8 GB RAM. Its image was ghcr.io/astral-sh/uv:python3.12-bookworm, which does not establish actual runtime versions. The error tail reaches a vendored Meson script calling exit(0); it does not establish a missing package or a defect in NumPy's calculations.

Choose NumPy for arrays that your calculations share

If your Python code needs multidimensional arrays, NumPy is a sensible place to start. Its README names broadcasting, linear algebra, Fourier transforms, and random-number routines, alongside interfaces to C, C++, and Fortran. Those are specific reasons to choose it: a numerical application can express operations around one array object instead of inventing its own representation and conversion rules for every calculation.

That recommendation has a testing boundary. Our source checkout installed and built, then pytest stopped during collection. We have no passing numerical tests from that command. A library can suit the architecture while a particular contributor workflow remains unverified. Keeping those judgments separate matters here, because the recorded exception came from a vendored Meson script, before our command reported a single passing or failing test.

What happened when we ran it

Our sandbox installed NumPy commit 70fa998 in 899 seconds and built it in 10 seconds, with both steps succeeding. The October 11, 2026 run recorded 36 dependencies and 38 MB on disk. Pytest then failed with exit code 3 after 7 seconds: 0 passed, 0 failed, and 2 collection/setup errors. That result gives a prospective contributor a concrete warning about the command we ran, without measuring an ordinary packaged-library install.

The log tail names vendored-meson/meson/test cases/common/26 find program/scripts/test_subdir.py. While importing that file, pytest encounters exit(0), followed by SystemExit: 0 and an internal error. The tail also contains its own shorter summary, 2 errors in 0.73 seconds. That is a log-reported interval within a step recorded as 7 seconds, rather than a replacement for the full measured step duration.

The available excerpt doesn't establish why discovery reached that file. It doesn't support blaming a compiler, missing system package, or Python compatibility. Nor can zero failed tests count as success when collection stopped with errors. We would need a follow-up using the intended project path before making a claim about the numerical suite. No such follow-up is part of these measurements.

Pip-audit reported 0 known vulnerabilities. That finding covers the recorded audit, not every possible security problem. The sandbox used 3 CPUs and 8 GB RAM with the image label ghcr.io/astral-sh/uv:python3.12-bookworm. The label alone doesn't prove the actual runtime or operating-system version. The supplied traceback names a Python library path, but it isn't a complete toolchain inventory.

The checkout is larger than the array API suggests

Our checkout contained 8,644 files, about 1,018,720 source lines, and occupied 70.7 MB. The scan recorded 24 CI workflow files, no Dockerfile, and no tests directory. Those scan labels should not be read as proof that NumPy has no tests: the README explicitly describes its checking tools. They are repository-discovery signals with a narrower meaning than a complete inventory of every nested component.

For an application author, most of that source tree is background. For someone changing array behavior or native interfaces, it is the workspace they must understand. The README links a contributor guide and asks developers proposing larger changes to contact the mailing list first. Following that route is a better next step than treating the failed collection as an invitation to remove files until a broad command turns green.

NumPy documents a different post-install check

The README shows a check through numpy.test() after installation and names pytest as required. It also identifies Meson, Cython, and Hypothesis for specialized checks. These details describe the upstream guidance; they are not extra results from our lab. We did not reproduce that documented route in the supplied run, so we cannot promise it would have repaired the observed collection errors.

The release notes for v2.5.4, published October 10, 2026, state support for Python 3.12 through 3.15. That is a release-specific compatibility statement. Our measurement identifies a commit, and the image name is insufficient to match the entire environment to that statement. Select a supported release and follow its guidance before interpreting an exception as a compatibility defect. The existing log does not establish one.

Labeled tables and transformed functions lead elsewhere

pandas documents labeled data, missing-value handling, and merging or joining datasets. If your code mostly names columns and combines tables, those operations are a closer match to the problem than starting with an unlabeled numerical array. This is a choice about the interface you write against, not evidence that pandas replaces NumPy in every layer beneath your application.

JAX explicitly targets accelerator-oriented array computation and program transformation, including automatic differentiation. Choose it when differentiating or compiling functions shapes the design. We did not compare execution speed, memory use, or compatibility between these projects. The useful distinction is what each project asks you to express: shared numerical arrays, labeled datasets, or transformed numerical functions.

October maintenance does not resolve our collection errors

GitHub recorded NumPy's last push on October 26, 2026. Recent pull requests addressed object comparisons, masked-array recursion, and documentation, alongside the October 10 patch release. The API listed 2,239 open issues and PRs combined. Those dated changes support describing the project as maintained, but they neither measure support turnaround nor explain the exception from our earlier checkout.

Use the array API when it fits your calculations. If you plan to contribute to the source, retain the failing log and establish a supported checking path before relying on a green status. The unresolved task is specific: obtain numerical test results, because the command in our sandbox never reached them.

Alternatives

ProjectWhat it isPick it when
pandas gh↗Python data structures for labeled and relational data.pick this instead when labels, missing values, and table joins are the work you want to express directly.
JAX gh↗An array library for accelerator-oriented computation and program transformations.pick this instead when automatic differentiation and compiled array functions determine your architecture.

What people are saying

  1. [lobsters] Making np.searchsorted up to 25× Faster in NumPy 2.5

Sources

  1. NumPy README
  2. NumPy release notes
  3. pandas README
  4. JAX README
  5. NumPy metadata
  6. Recent NumPy contributions

More data reviews

rerun · telegraf · rocksdb · redash · akshare · DB-GPT · the whole board →