The fundamental package for scientific computing with Python.
The fundamental package for scientific computing with Python.
It provides:
Testing:
NumPy requires pytest. In addition, there are a number of optional test
dependencies, like Meson for testing the NumPy C API, Cython for testing the
NumPy Cython API, and Hypothesis for additional property-based tests.
Tests can then be run after installation with:
python -c "import numpy, sys; sys.exit(numpy.test() is False)"NumPy is a community-driven open source project developed by a diverse group of contributors. The NumPy leadership has made a strong commitment to creating an open, inclusive, and positive community. Please read the NumPy Code of Conduct for guidance on how to interact with others in a way that makes our community thrive.
The NumPy project welcomes your expertise and enthusiasm!
Small improvements or fixes are always appreciated. If you are considering larger contributions to the source code, please contact us through the mailing list first.
Writing code isn’t the only way to contribute to NumPy. You can also:
For more information about the ways you can contribute to NumPy, visit our website. If you’re unsure where to start or how your skills fit in, reach out! You can ask on the mailing list or here, on GitHub, by opening a new issue or leaving a comment on a relevant issue that is already open.
Our preferred channels of communication are all public, but if you’d like to speak to us in private first, contact our community coordinators at [email protected] or on Slack (write [email protected] for an invitation).
We also have a biweekly community call, details of which are announced on the mailing list. You are very welcome to join.
If you are new to contributing to open source, this guide helps explain why, what, and how to successfully get involved.
PyArray_FromAny ignores newtype with memoryview
BUG: Corner cases for zero-length string dtypes - array copying changes dtype
BUG: npy_math.h complex accessors call UCRT creal/cimag, but npy_cdouble is C99 _Complex for icx on Windows
Add `select()` to allow `choice(..., replace=False)` with `size=`
BUG: Setting an object array via slicing with nested lists invokes the objects `__array__` methods unnecessarily
ENH,MAINT: FFT Gufuncs could be improved with C++ and new API
ENH : np.argmax is unusually time consuming for multidimensional array
ENH: histogram_bin_edges: add an equal-frequency (quantile) binning strategy
BUG: numpy int64/float64 comparisons are inexact
BUG: a few more reproducers related to large structured dtypes