About 922,000 results
Open links in new tab
  1. numpy.arangeNumPy 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 …

  2. python - numpy array creating with a sequence - Stack Overflow

    May 25, 2012 · Well NumPy implements MATLAB's array-creation function, vector, using two functions instead of one--each implicitly specifies a particular axis along which concatenation …

  3. numpy.arange() in Python - GeeksforGeeks

    Jan 24, 2025 · numpy.arange () function creates an array of evenly spaced values within a given interval. It is similar to Python’s built-in range () function but returns a NumPy array instead of …

  4. How to create a sequence of sequences of numbers in NumPy?

    Jan 5, 2022 · I would like to make the following sequence in NumPy. [1, 2, 3, 4, 5, 2, 3, 4, 5, 3, 4, 5, 4, 5, 5] I have tried the following: Non-generic and hard coding using np.r_ np.r_[1:6, 2:6, …

  5. Array creation — NumPy v2.2 Manual

    The 1D array creation functions e.g. numpy.linspace and numpy.arange generally need at least two inputs, start and stop. numpy.arange creates arrays with regularly incrementing values. …

  6. NumPy arange(): Complete Guide (w/ Examples) - datagy

    Sep 21, 2022 · In this tutorial, you learned how to use the NumPy arange() function to generate a sequence of numbers. You first learned how the function works and how it can be customized …

  7. How to create a numeric sequence in Python using NumPy

    In this article, let’s see how to create a numeric sequence in Python using NumPy. NumPy is a module that is commonly used for scientific, statistical analysis. NumPy arrays are grids of …

  8. How to Generate Sequence Arrays in Python with Numpy arange

    Mar 19, 2021 · The following code generates a sequence array of numbers from 1 to 0 with a step size of -0.1: import numpy as np sequence_array = np.arange(1, 0, -0.1) …

  9. How to Use the arange() Function in Python? - Python Guides

    Jan 7, 2025 · Learn how to use the `arange()` function in Python with NumPy to create sequences of numbers efficiently. This guide covers syntax, parameters, examples.

  10. NumPy arange() - Programiz

    Both np.arange() and np.linspace() are NumPy functions used to generate numerical sequences, but they have some differences in their behavior. arange() generates a sequence of values …