About 125,000 results
Open links in new tab
  1. numpy.reshapeNumPy v2.3 Manual

    Array to be reshaped. The new shape should be compatible with the original shape. If an integer, then the result will be a 1-D array of that length. One shape dimension can be -1. In this case, …

  2. numpy.reshape () in Python - GeeksforGeeks

    Jan 13, 2025 · In Python, numpy.reshape () function is used to give a new shape to an existing NumPy array without changing its data. It is important for manipulating array structures in Python.

  3. Using NumPy reshape () to Change the Shape of an Array

    In this tutorial, you'll learn how to use NumPy reshape () to rearrange the data in an array. You'll learn to increase and decrease the number of dimensions and to configure the data in the new …

  4. Understanding Python numpy.reshape () - PyTutorial

    Oct 20, 2024 · Learn how to use the numpy.reshape () function in Python to change the shape of arrays. This guide covers syntax, parameters, and examples for beginners.

  5. Reshape an Array in Python Using the NumPy Library

    May 15, 2025 · In this article, I’ll cover several simple ways you can use to reshape arrays in Python using NumPy. So let’s dive in! When working with data in Python, we often need to …

  6. NumPy Array Reshaping - W3Schools

    Can We Reshape Into any Shape? Yes, as long as the elements required for reshaping are equal in both shapes. We can reshape an 8 elements 1D array into 4 elements in 2 rows 2D array …

  7. Reshape NumPy Array - Python - GeeksforGeeks

    Nov 18, 2025 · Reshaping in NumPy refers to modifying the dimensions of an existing array without changing its data. The reshape () function is used for this purpose. It reorganizes the …

  8. numpy.reshape — NumPy v2.2 Manual

    Gives a new shape to an array without changing its data. Array to be reshaped. The new shape should be compatible with the original shape. If an integer, then the result will be a 1-D array of …

  9. numpy.reshape — NumPy v1.23 Manual

    Use `.reshape()` to make a copy with the desired shape. The order keyword gives the index ordering both for fetching the values from a, and then placing the values into the output array. …

  10. numpy.reshape — NumPy v1.26 Manual

    It is not always possible to change the shape of an array without copying the data. The order keyword gives the index ordering both for fetching the values from a, and then placing the …