Trying to pass columns into function, getting keyerror (Pandas)

后端 未结 0 953
执笔经年
执笔经年 2020-12-14 08:28

I have this code block:

def euc_dist(x,y):
    return ((x[0] - y[0])**2 +(x[1] - y[1])**2 )**(1/2)

def dist(s1,s2):    
    distances = [euc_dist(s1[i],s2[i]         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题