About 50 results
Open links in new tab
  1. Create 3D array using Python - Stack Overflow

    May 20, 2012 · I would like to create a 3D array in Python (2.7) to use like this:

  2. python - 3-dimensional array in numpy - Stack Overflow

    New at Python and Numpy, trying to create 3-dimensional arrays. My problem is that the order of the dimensions are off compared to Matlab. In fact the order doesn't make sense at all. Creating a m...

  3. How to add elements to 3 dimensional array in python

    In cases like that, I usually append all elements to a one-dimensional, flat list, and then, when I am finished reading, convert it to a numpy array and reshape it to the correct, three-dimensional shape.

  4. How to create a 3D array in Python with Numpy? - Stack Overflow

    How to create a 3D array in Python with Numpy? Asked 5 years, 7 months ago Modified 5 years, 7 months ago Viewed 12k times

  5. python - Pythonic way of iterating over 3D array - Stack Overflow

    Aug 27, 2009 · array[(x + 0, y + 1, z + 1)] array[(x + 1, y + 1, z + 1)] The array is a Numpy array, though that's not really necessary. I just found it very easy to read the data in with a one-liner using …

  6. How to transform a 3d arrays into a dataframe in python

    Feb 20, 2016 · The first part of this answer is the nicest way I believe to convert a multidimensional Numpy array to a Pandas dataframe.

  7. python - Building a 3D array from a number of 2D arrays with numpy ...

    Apr 12, 2017 · Building a 3D array from a number of 2D arrays with numpy Asked 8 years, 10 months ago Modified 8 years, 10 months ago Viewed 16k times

  8. python - How can I make a two-dimensional NumPy array a three ...

    Sep 10, 2011 · I have a two-dimensional array with shape (x, y) which I want to convert to a three-dimensional array with shape (x, y, 1). Is there a nice Pythonic way to do this?

  9. What is the most efficient way to plot 3d array in Python?

    Aug 31, 2017 · What is the most efficient way to plot 3d array in Python? For example: volume = np.random.rand(512, 512, 512) where array items represent grayscale color of each pixel. The …

  10. numpy with python: convert 3d array to 2d - Stack Overflow

    Sep 29, 2015 · Say that I have a color image, and naturally this will be represented by a 3-dimensional array in python, say of shape (n x m x 3) and call it img. I want a new 2-d array, call it "narray" to have a