Coding skills here for learning
@CodingPythonSql
5
subscribers
266
photos
3
files
10
links
Download Telegram
Join
Coding skills here for learning
5 subscribers
Coding skills here for learning
b[0, 1, 1] means 1st row 2 second level 2 second number
Coding skills here for learning
np.zeros((2,3)) means 2 rows and 3 columns with zeros
Coding skills here for learning
np.full((2,2), number you want)
Coding skills here for learning
np.full_like(a, 4) means any number and also 4
Coding skills here for learning
np.random.rand(4,2)
Coding skills here for learning
np.random.random_sample()
Coding skills here for learning
np.random.randint(7, size=())
Coding skills here for learning
np.identity()
Coding skills here for learning
r1 = np.repeat(array, times)
Coding skills here for learning
with two dimensional array do axis= 0
Coding skills here for learning
output = np.ones((5,5))
z = np.zeros((3.3))
z[1,1] = 9
output[1:4, 1:4] = z
Coding skills here for learning
when copying be careful even though you assign in new variable it changes
Coding skills here for learning
a = np.array()
b = a.copy()
Coding skills here for learning
you can do a * 2 a / 2 a + 2 a - 2
Coding skills here for learning
a += 2
Coding skills here for learning
a ** 2
Coding skills here for learning
np.sin(a)
np.cos(a)
Coding skills here for learning
a = np.ones((2,3))
b = np.full((3,2), 2)
np.matmul(a, b)
Coding skills here for learning
np.sum(array)
Coding skills here for learning
after = before.reshape((8,1))
Coding skills here for learning
np.vstack([array1, array2])