numpy

22 bookmarks
2026-06-12 · kdnuggets.com

3 NumPy Tricks for Numerical Performance - KDnuggets

In this article, we will cover three essential NumPy tricks to optimize your code: vectorization and broadcasting, in-place operations, and leveraging memory views instead of copies.

To optimize, you must write code using native universal functions (ufuncs) and broadcasting.
When working with very large arrays (e.g. millions of entries), allocating and garbage-collecting these temporary intermediate arrays creates substantial overhead.
2025-08-22 · statology.org

NumPy vs SciPy: When to Use Each for Statistical Computing

Learn when to use NumPy vs SciPy for statistical computing with practical examples and decision frameworks.

array operations, simple statistics, and mathematical computations.
probability distributions, hypothesis testing, regression analysis, and specialized statistical procedures. Use SciPy when you need statistical inference, probability calculations, or advanced analytical techniques
2020-03-23 · towardsdatascience.com

NumPy indexing explained

NumPy is the universal standard for working with Numerical data in Python. Multidimensional NumPy arrays are extensively used in Pandas…