import math


def getDistance(x_data_row1, x_data_row2):
    """calculates distance between two rows of data (based on Euclidean distance)"""
    distance = 0                            
    length = len(x_data_row1)
    for i in range(length):
        distance += (x_data_row1[i] - x_data_row2[i])**2      # differences of the columns squared
    
    distance = math.sqrt(distance)

    return distance