About 31,800 results
Open links in new tab
  1. 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.) …

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

    You can create a new array from a section of your array any time by specifying where you want to slice your array. >>> arr1 = a [ 3 : 8 ] >>> arr1 array([4, 5, 6, 7, 8]) Here, you grabbed a …

  3. Array creation — NumPy v1.20 Manual

    Jan 31, 2021 · There are 5 general mechanisms for creating arrays: Conversion from other Python structures (e.g., lists, tuples) Intrinsic numpy array creation objects (e.g., arange, ones, …

  4. numpy.zeros — NumPy v2.2 Manual

    numpy.zeros# numpy. zeros (shape, dtype = float, order = 'C', *, like = None) # Return a new array of given shape and type, filled with zeros. Parameters: shape int or tuple of ints. Shape …

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

    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 …

  6. Array creation routines — NumPy v2.2 Manual

    Create a NumPy array from an object implementing the __dlpack__ protocol. fromfile (file[, dtype, count, sep, offset, like]) Construct an array from data in a text or binary file.

  7. numpy.arange — NumPy v2.2 Manual

    numpy.arange# numpy. arange ([start, ] stop, [step, ] dtype=None, *, device=None, like=None) # Return evenly spaced values within a given interval. arange can be called with a varying …

  8. 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 …

  9. 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 …

  10. NumPy quickstart — NumPy v2.2 Manual

    There are several ways to create arrays. 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 …

Refresh