need help with Haversine function

I didn't understand your point earlier. You want to attach the distance column to the quakes dataset.

You're right. It's impossible because now you'll have more number of rows and hence that doesn't make sense.