Sep 12, 2024
import numpy as np
time
library.np.array([1, 2, 3])
array.shape
np.array([[1, 2], [3, 4]])
array.shape
dtype
for floating point, etc.np.zeros(shape)
np.ones(shape)
np.full(shape, value)
np.eye(size)
np.random.random(size)
np.random.randint(low, high, size)
np.linspace(start, stop, num)
np.array(list)
np.array(tuple)
array.shape
array.ndim
array.size
array.dtype
np.add()
, np.subtract()
, np.multiply()
, np.divide()
.np.transpose(array)
or array.T
.array.reshape(new_shape)
.