<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title>Bing: How to Make a 2D Array in Python</title><link>http://www.bing.com:80/search?q=How+to+Make+a+2D+Array+in+Python</link><description>Search results</description><image><url>http://www.bing.com:80/s/a/rsslogo.gif</url><title>How to Make a 2D Array in Python</title><link>http://www.bing.com:80/search?q=How+to+Make+a+2D+Array+in+Python</link></image><copyright>Copyright © 2026 Microsoft. All rights reserved. These XML results may not be used, reproduced or transmitted in any manner or for any purpose other than rendering Bing results within an RSS aggregator for your personal, non-commercial use. Any other use of these results requires express written permission from Microsoft Corporation. By accessing this web page or using these results in any manner whatsoever, you agree to be bound by the foregoing restrictions.</copyright><item><title>python - How to define a two-dimensional array? - Stack Overflow</title><link>https://stackoverflow.com/questions/6667201/how-to-define-a-two-dimensional-array</link><description>I want to define a two-dimensional array without an initialized length like this: Matrix = [][] But this gives an error: IndexError: list index out of range</description><pubDate>Sat, 11 Apr 2026 20:15:00 GMT</pubDate></item><item><title>How to initialize a two-dimensional array (list of lists, if not using ...</title><link>https://stackoverflow.com/questions/2397141/how-to-initialize-a-two-dimensional-array-list-of-lists-if-not-using-numpy-in</link><description>numpy provides a multidimensional array type. Building a good multidimensional array out of lists is possible but less useful and harder for a beginner than using numpy. Nested lists are great for some applications, but aren't usually what someone wanting a 2d array would be best off with.</description><pubDate>Mon, 13 Apr 2026 17:50:00 GMT</pubDate></item><item><title>Two dimensional array in python - Stack Overflow</title><link>https://stackoverflow.com/questions/8183146/two-dimensional-array-in-python</link><description>2 When constructing multi-dimensional lists in Python I usually use something similar to ThiefMaster's solution, but rather than appending items to index 0, then appending items to index 1, etc., I always use index -1 which is automatically the index of the last item in the array. i.e.</description><pubDate>Sat, 11 Apr 2026 17:45:00 GMT</pubDate></item><item><title>2D arrays in Python - Stack Overflow</title><link>https://stackoverflow.com/questions/856948/2d-arrays-in-python</link><description>3 If you are concerned about memory footprint, the Python standard library contains the array module; these arrays contain elements of the same type.</description><pubDate>Sun, 12 Apr 2026 23:56:00 GMT</pubDate></item><item><title>python - Merging 1D arrays into a 2D array - Stack Overflow</title><link>https://stackoverflow.com/questions/49322017/merging-1d-arrays-into-a-2d-array</link><description>The methods that use transpose (function or method or property) produce a F order array, with strides like (8,16) instead of the usual (16,8). All the stack functions use np.concatenate.</description><pubDate>Mon, 13 Apr 2026 19:37:00 GMT</pubDate></item><item><title>Convert a 1D array to a 2D array in numpy - Stack Overflow</title><link>https://stackoverflow.com/questions/12575421/convert-a-1d-array-to-a-2d-array-in-numpy</link><description>I want to convert a 1-dimensional array into a 2-dimensional array by specifying the number of columns in the 2D array. Something that would work like this: &amp;gt; import numpy as np &amp;gt; A = np.arr...</description><pubDate>Fri, 10 Apr 2026 22:33:00 GMT</pubDate></item><item><title>python - How can I make a two-dimensional NumPy array a three ...</title><link>https://stackoverflow.com/questions/7372316/how-can-i-make-a-two-dimensional-numpy-array-a-three-dimensional-array</link><description>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?</description><pubDate>Sun, 12 Apr 2026 17:58:00 GMT</pubDate></item><item><title>How can I reshape a 2D array into 1D in python? - Stack Overflow</title><link>https://stackoverflow.com/questions/74244578/how-can-i-reshape-a-2d-array-into-1d-in-python</link><description>If I surmise correctly. In Python, the extend() method can be used to flatten a nested list into a 1D list efficiently. This method appends the elements of each inner list to an outer list. Below is an example of how to flatten a 2D array into a 1D array using extend():</description><pubDate>Tue, 14 Apr 2026 22:49:00 GMT</pubDate></item><item><title>python - Building a 3D array from a number of 2D arrays with numpy ...</title><link>https://stackoverflow.com/questions/43363641/building-a-3d-array-from-a-number-of-2d-arrays-with-numpy</link><description>stack can work with a long list of 2d arrays like that. So if you have to do this repeatedly, append to the list and stack once. cancatenate works to add arrays along an existing dimension, but you'll have to add a dimension to the 2d to match those of the existing 3d.</description><pubDate>Sat, 11 Apr 2026 04:31:00 GMT</pubDate></item><item><title>class - Creating 2d array of classes in Python - Stack Overflow</title><link>https://stackoverflow.com/questions/19973941/creating-2d-array-of-classes-in-python</link><description>My problem is something that seems to be a common one on Stackoverflow, which is the creation and use of a usable multidimensional array. After much searching, I have gotten the hang of creating multidimensional lists of integers or strings, etc, but when it comes to a multidimensional array (or list of lists, to be precise) of classes, all ...</description><pubDate>Fri, 10 Apr 2026 15:09:00 GMT</pubDate></item></channel></rss>