This vIdeo is a Discussion about how to divide two arrays in numpy
Syntax:
array1/array2
example :
import numpy as np
a=np.array([1,2,3,4])
b=np.array([2,1,4,5])
a/b
out put:
array([.5,2.,.75,.80])
Important Points:
1./ is used to perform division of two arrays.
2. shape of two arrays should be same
Otherwise numpy throws value error
SUBTRACTION OF TWO ARRAYS :
• How To Perform Subtraction Between Two Arr...