How to create 3D array in NumPy Python | Module NumPy Tutorial - Part 04

Published: 21 September 2022
on channel: Koolac
28,315
395

How to create 3D (3 dimensional) array in numpy Python. In this video we will talk about how to create three dimensional arrays in module numpy Python.

==================================
NumPy Module Tutorial Playlist for Machine Learning:
==================================
   • Numpy Python Playlist  

==================================
Source Code:
==================================
import numpy as np
A=np.array([
[2,-3,1],
[2,0,-1],
[1,4,5]
])
print(A.shape)
print(A.ndim)
print("=======================")
B=np.array([
[[1,2,3],
[4,5,6]],

[[7,8,9],
[10,11,12]]
])
print(B.shape)
print(B.ndim)


On this page of the site you can watch the video online How to create 3D array in NumPy Python | Module NumPy Tutorial - Part 04 with a duration of hours minute second in good quality, which was uploaded by the user Koolac 21 September 2022, share the link with friends and acquaintances, this video has already been watched 28,315 times on youtube and it was liked by 395 viewers. Enjoy your viewing!