
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:
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.
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...
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
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 …
python - Create arbitrary multidimensional zeros array - Stack Overflow
python arrays multidimensional-array numpy edited Jan 31, 2025 at 15:46 mkrieger1 24.4k 7 69 85
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?
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, 9 months ago Modified 8 years, 9 months ago Viewed 16k times
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.
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 …