About 50 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.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 …

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

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

  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 — 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, …

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

  8. numpy.empty — NumPy v2.2 Manual

    numpy.empty# numpy. empty (shape, dtype = float, order = 'C', *, device = None, like = None) # Return a new array of given shape and type, without initializing entries. Parameters: shape int …

  9. numpy.random.rand — NumPy v2.2 Manual

    Create an array of the given shape and populate it with random samples from a uniform distribution over [0, 1). Parameters: d0, d1, …, dn int, optional. The dimensions of the returned …

  10. 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.) …

Refresh