human
euclidean distance of nd array algorithm.
assistant
Here is a Python function to euclidean distance of an array algorithm

import numpy as np

def euclidean_distance(x, y):
    """
    Calculates the euclidean distance between two ndarrays.
    Parameters
    ----------
    x : ndarray
        First ndarray.
    y : ndarray
        Second ndarray.
    Returns
    -------
    dist : float
        Euclidean distance between x and y.
    """
    return np.sqrt(np.sum(np.square(x - y)))

# Enter the ndarray
x = np.array([1,2,3])

# Enter the ndarray
y = np.array([4,5,6])

# Calling the function
print((euclidean_distance(x, y)))

#Example Output
# 5.196152422706632

#Remember to inspect code for bugs.