1] Addition
#clcoding
import pandas as pd
s1 = pd.Series([10,20,30,40,50])
s2 = pd.Series([70,80,90,100,110])
s1.add(s2)
2] Subtraction
import pandas as pd
s1 = pd.Series([10,20,30,40,50])
s2 = pd.Series([70,80,90,100,110])
s1.subtract(s2)
3] Multiplication
import pandas as pd
s1 = pd.Series([10,20,30,40,50])
s2 = pd.Series([70,80,90,100,110])
s1.multiply(s2)
import pandas as pd
s1 = pd.Series([10,20,30,40,50])
s2 = pd.Series([70,80,90,100,110])
s1.divide(s2)
0 Comments:
Post a Comment