10,700 results
Open links in new tab
  1. 2D Array in Python: Nested Lists and NumPy Examples

    Sep 22, 2026 · A 2D array in Python is a table of values arranged in rows and columns. Python has no built-in 2D array type, so you …

  2. Manipulating Multidimensional Arrays in Python NumPy

    Feb 19, 2026 · Manipulating multidimensional arrays involves working with data arranged in multiple dimensions such as rows and …

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

    An ndarray is a (usually fixed-size) multidimensional container of items of the same type and size. The number of dimensions and …

  4. Using 2D arrays/lists in Python - GeeksforGeeks

    Dec 20, 2025 · A 2D list in Python is essentially a list of lists, commonly used to store data in a table-like format with rows and …

  5. python - How to generate 2d numpy array? - Stack Overflow

    Feb 20, 2015 · If they produce numbers, your code should work: that is the correct way to initialize a 2d numpy array (numpy is …

  6. NumPy Creating Arrays - W3Schools

    NumPy has a whole sub module dedicated towards matrix operations called numpy.mat. Create a 2-D array containing two arrays …

  7. python - Convert a 1D array to a 2D array in numpy - Stack Overflow

    Sep 25, 2012 · I want to convert a 1-dimensional array into a 2-dimensional array by specifying the number of columns in the 2D …

  8. NumPy N-D Array Creation (With Examples) - Programiz

    In NumPy, we can use the np.full () function to create a multidimensional array with a specified value. For example, to create a 2-D …

  9. Python 2D Arrays Guide: Lists, NumPy, Examples - PyTutorial

    Mar 25, 2026 · Learn how to create, access, and manipulate 2D arrays in Python using lists and NumPy with clear code examples …

  10. 2-Dimensional Arrays — Python for Data Science

    Numpy provides us with tools for creating and working with higher dimensional arrays. In this lesson, we will work exclusively with 2D …