Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

2
  • $\begingroup$ How do I rearrange the order that the distances are displayed in? I notice that the first distance value is distances[0][0]. The second distance value is distances[1][0]. Third value is distances[2][0]. This is not very intuitive to me. I'd prefer to have them coming one after the other so that I can easily find the index of a particular distance measurement. $\endgroup$ Commented Aug 11, 2022 at 16:57
  • $\begingroup$ You can rearrange the original arrays to change the order of the final results, or run (A - p, axis=1) for p in B in the norm function, to get [0][0], then [0][1], if I'm not mistaken $\endgroup$ Commented Aug 12, 2022 at 6:58