nearby_strikes = other_strikes.loc[ind[0]:ind[1] - 1].copy()
if len(nearby_strikes) == 0:
    return False
nearby_strikes['distance'] = get_distance([lat_ref, long_ref],
    nearby_strikes[['Lat', 'Lon']])
nearby_strikes = nearby_strikes[nearby_strikes['distance'] <= delta_d]
return len(nearbystrikes) > 0
Как эффективно сравнивать строки в пандах DataFrame?