About 5,210 results
Open links in new tab
  1. numpy.ndarray — NumPy v2.2 Manual

    There are two modes of creating an array using __new__: If buffer is None, then only shape , dtype , and order are used. If buffer is an object exposing the buffer interface, then all keywords are interpreted.

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

    An ndarray is a (usually fixed-size) multidimensional container of items of the same type and size. The number of dimensions and items in an array is defined by its shape , which is a tuple of N non-negative integers that specify the sizes of each dimension.

  3. Array creation — NumPy v2.2 Manual

    The ndarray creation functions can create arrays with any dimension by specifying how many dimensions and length along that dimension in a tuple or list. numpy.zeros will create an array filled with 0 values with the specified shape.

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

    ndarray.shape will display a tuple of integers that indicate the number of elements stored along each dimension of the array. If, for example, you have a 2-D array with 2 rows and 3 columns, the shape of your array is (2, 3). For example, if you create this array: >>>

  5. Indexing on ndarrays — NumPy v2.2 Manual

    ndarrays can be indexed using the standard Python x[obj] syntax, where x is the array and obj the selection. There are different kinds of indexing available depending on obj : basic indexing, advanced indexing and field access.

  6. numpy.empty — NumPy v2.2 Manual

    out ndarray. Array of uninitialized (arbitrary) data of the given shape, dtype, and order. Object arrays will be initialized to None.

  7. Subclassing ndarray — NumPy v2.2 Manual

    Subclassing ndarray is relatively simple, but it has some complications compared to other Python objects. On this page we explain the machinery that allows you to subclass ndarray, and the implications for implementing a subclass.

  8. The N-dimensional array (ndarray) — NumPy v1.20 Manual

    Jan 31, 2021 · The N-dimensional array (ndarray)¶ An ndarray is a (usually fixed-size) multidimensional container of items of the same type and size. The number of dimensions and items in an array is defined by its shape , which is a tuple of N non-negative integers that specify the sizes of each dimension.

  9. numpy.array — NumPy v2.2 Manual

    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 containing object is returned. dtype data-type, optional. The desired data-type for the array.

  10. numpy.ndarray — NumPy v1.18 Manual

    May 24, 2020 · 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.

Refresh