I have a pandas dataframe with six columns, first three columns contain x, y and z reference coordinate, and the next three - coordinates of some point. I want to put euclidean distance between those two points in new column of the dataframe. I think about using numpy.linalg.norm
via pandas.apply
method, but I don't know what is the best method to parse dataframe row for numpy function. Could you give me some suggestions?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…