This vIdeo is a Discussion about how to add two arrays in numpy
Syntax:
array1+array2
example :
import numpy as np
a=np.array([1,2,3,4])
b=np.array([4,5,6,7])
a+b
out put:
array([5,7,9,11])
Important Points:
1.+ is used to perform addition 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 Tw...