About 16,300 results
Open links in new tab
  1. 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 exposing the array interface, an object whose __array__ method returns an array, or any (nested) sequence. If object is a scalar, a 0-dimensional array ...

  2. NumPy: the absolute basics for beginners — NumPy v2.2 Manual

    The NumPy library contains multidimensional array data structures, such as the homogeneous, N-dimensional ndarray, and a large library of functions that operate efficiently on these data structures. Learn more about NumPy at What is NumPy , and if you have comments or suggestions, please reach out !

  3. 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.) Replicating, joining, or mutating existing arrays. Reading arrays …

  4. 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.

  5. Array manipulation routines — NumPy v2.2 Manual

    Assemble an nd-array from nested lists of blocks. vstack (tup, *[, dtype, casting]) Stack arrays in sequence vertically (row wise). hstack (tup, *[, dtype, casting]) Stack arrays in sequence horizontally (column wise). dstack (tup) Stack arrays in sequence depth wise (along third axis). column_stack (tup) Stack 1-D arrays as columns into a 2-D ...

  6. NumPy quickstart — NumPy v2.2 Manual

    For example, you can create an array from a regular Python list or tuple using the array function. The type of the resulting array is deduced from the type of the elements in the sequences. >>>

  7. 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 and attributes of the ndarray.

  8. Array objects — NumPy v2.2 Manual

    Array objects# NumPy provides an N-dimensional array type, the ndarray , which describes a collection of “items” of the same type. The items can be indexed using for example N integers.

  9. numpy.ndarray — NumPy v2.2 Manual

    numpy.ndarray# class numpy. ndarray (shape, dtype = float, buffer = None, offset = 0, strides = None, order = None) [source] # An array object represents a multidimensional, homogeneous array of fixed-size items.

  10. Universal functions (ufunc) — NumPy v2.2 Manual

    A universal function (or ufunc for short) is a function that operates on ndarrays in an element-by-element fashion, supporting array broadcasting, type casting, and several other standard features.

Refresh