0.0, 52.1212839519, 6.40719759732, 43.0378290605, 86.769620064, 96.7032941473
53.7416111725, 0.0, 27.5552964592, 85.3286070586, 59.5613449796, 8.89540736892
96.1429198049, 62.5329836475, 0.0, 6.32027280686, 37.8091052942, 69.8963084944
57.8352492462, 49.3506467609, 38.6602692461, 0.0, 7.15105257546, 45.0177800391
72.7583417281, 48.9477878574, 4.21277494476, 98.183168992, 0.0, 15.7022798801
32.4683285321, 83.9794307564, 23.578346756, 30.2128827937, 82.5804959193, 0.0
How to speed up the code - searching through a dataframe takes hours