I am doing a Python project and trying to cut down on some computational time at the start using Pandas. The code currently is:
for c1 in centres1: for c2 in centres2: if ((c1[0]-c2[0])**2 + (c1[1]-c2[1])**2) < search_rad*search_rad: possible_commet.append([c1,c2]) I am trying to put centres1 and centres2 into data frames then compare each value to each other value. Would pandas help me cut some time off it? (currently 2 mins). If not how could I work around it? Thanks
zip()