I have two long lists of of X and Y coordinates in space. I would like to calculate the absolute change in total distance in each frame. Everywhere I look online it is only the Euclidian distance for the entire list which isn't what I am trying to get. Sample data below
I tried to calculate Euclidian distance with a for loop but I am not sure if i need to be nested. this is what I have as so far:
import pandas as pd
import numpy as np
data = pd.read_csv("/Users/ryan/Desktop/blahblah/Documents/Python_input.csv")
X_cords = data['X'].tolist()
Y_cords = data['Y'].tolist()
Z_cords = data['Z'].tolist()
X_cords1 = np.array(X_cords)
Y_cords1 = np.array(Y_cords)
Z_cords1 = np.array(Z_cords)