Created function to compute array of neighbor distances using pandas and scipy functions.