ndarray in python numpy || multidimensional array || array || python || Ak

Опубликовано: 15 Март 2026
на канале: CSE TECH'S
452
13

#numpy.array
***********************************************************************
#one dimensional array
#import numpy as np
#a = np.array([1,2,3])
#print(a)
*********************************************************************************
more than one dimensions
#import numpy as np
#a = np.array([[1, 2], [3, 4]])
#print(a)
*******************************************************************************

minimum dimensions
#import numpy as np
#a = np.array([1, 2, 3,4,5], ndmin = 2)
#print(a)
***************************************************************************

dtype parameter
import numpy as np
a = np.array([1, 2, 3], dtype = complex)
print(a)
***********************************************************************

if you found it usefull
please subscribe to my channel
if you like this info please like the video
and share with your friends so they can learn too