# import necessary libraries import pandas as pd import numpy as np # define your series s1 = pd.Series([1, 2, 3]) s2 = pd.Series([4, 5, 6]) # calculate distance distance = np.sqrt(np.sum((s1 - s2)** 2)) # print distance print(distance)