Python 3 crumbs tagged with #3d

Creating 2D and 3D multidimensional arrays with NumPy

Creating 2D and 3D multidimensional arrays with NumPy

Nov 11, 2022 by erik

We can create ndarrays using the np.array function. We need to use nested lists to introduce the extra dimensions. As you can see when running this example, the output (when using print) can become a bit hard to read. This...

numpy array 2D 3D