About 65,300 results
Open links in new tab
  1. numpy.ndarray.shape — NumPy v2.4 Manual

    numpy.ndarray.shape # attribute ndarray.shape # Tuple of array dimensions. The shape property is usually used to get the current …

  2. numpy.shape — NumPy v2.4 Manual

    numpy.shape # numpy.shape(a) [source] # Return the shape of an array. Parameters: aarray_like Input array. Returns: shapetuple …

  3. NumPy Array Shape - GeeksforGeeks

    Jul 15, 2025 · Shape Manipulation in NumPy Below are some examples by which we can understand about shape manipulation in …

  4. NumPy Array Shape - W3Schools

    Get the Shape of an Array NumPy arrays have an attribute called shape that returns a tuple with each index having the number of …

  5. NumPy Shape and Array Dimensions in Python

    May 8, 2025 · Learn how to use NumPy shape in Python to understand and manipulate array dimensions. Examples with real-world …

  6. python - What does .shape [] do in "for i in range (Y.shape [0 ...

    The shape attribute for numpy arrays returns the dimensions of the array. If Y has n rows and m columns, then Y.shape is (n,m). So …

  7. NumPy: Get the dimensions, shape, and size of an array

    Apr 23, 2025 · You can get the number of dimensions, the shape (length of each dimension), and the size (total number of elements) …

  8. arrays - what does numpy ndarray shape do? - Stack Overflow

    Nov 30, 2017 · yourarray.shape or np.shape() or np.ma.shape() returns the shape of your ndarray as a tuple; And you can get the …

  9. Understanding NumPy Array Shape: A Comprehensive Guide

    NumPy (Numerical Python) is the foundational package for scientific computing in Python. At its core are **ndarrays** (N …

  10. Mastering NumPy Array Shape: The Ultimate Developer’s Guide

    NumPy (Numerical Python) is the backbone of almost every data science library, including Pandas, Scikit-Learn, TensorFlow, and …