Given a 2D numpy array points of shape (N, 2) representing N 2D points, compute the N×N pairwise Euclidean distance matrix using broadcasting (no Python loops).
Round the result to 4 decimal places. The diagonal must be exactly 0.0.
Ready to take your skills to the next level? Enroll in our comprehensive Data Analyst Career Track to master SQL, Python, Excel, and Power BI.
Run your code to see the result here.