About 1,520 results
Open links in new tab
  1. NumPy: the absolute basics for beginners — NumPy v2.2 Manual

    There are often instances where we want NumPy to initialize the values of an array. NumPy offers functions like ones() and zeros(), and the random.Generator class for random number …

  2. Array manipulation routines — NumPy v2.2 Manual

    Return a new array with the specified shape. trim_zeros (filt[, trim, axis]) Remove values along a dimension which are zero along all other. unique (ar[, return_index, return_inverse, ...]) Find …

  3. NumPy quickstart — NumPy v2.2 Manual

    Understand the difference between one-, two- and n-dimensional arrays in NumPy; Understand how to apply some linear algebra operations to n-dimensional arrays without using for-loops; …

  4. numpy.array — NumPy v2.2 Manual

    numpy.array# numpy. array (object, dtype = None, *, copy = True, order = 'K', subok = False, ndmin = 0, like = None) # Create an array. Parameters: object array_like. An array, any object …

  5. The N-dimensional array (ndarray) — NumPy v2.2 Manual

    As with other container objects in Python, the contents of an ndarray can be accessed and modified by indexing or slicing the array (using, for example, N integers), and via the methods …

  6. Mathematical functions — NumPy v2.2 Manual

    First array elements raised to powers from second array, element-wise. fmod (x1, x2, /[, out, where, casting, ...]) Returns the element-wise remainder of division.

  7. Broadcasting — NumPy v2.2 Manual

    The term broadcasting describes how NumPy treats arrays with different shapes during arithmetic operations. Subject to certain constraints, the smaller array is “broadcast” across the larger …

  8. What is NumPy? — NumPy v2.3.dev0 Manual

    It is a Python library that provides a multidimensional array object, various derived objects (such as masked arrays and matrices), and an assortment of routines for fast operations on arrays, …

  9. Array creation — NumPy v2.2 Manual

    There are 6 general mechanisms for creating arrays: Conversion from other Python structures (i.e. lists and tuples) Intrinsic NumPy array creation functions (e.g. arange, ones, zeros, etc.) …

  10. Indexing on ndarrays — NumPy v2.2 Manual

    The slice operation extracts columns with index 1 and 2, (i.e. the 2nd and 3rd columns), followed by the index array operation which extracts rows with index 0, 2 and 4 (i.e the first, third and …

Refresh