for a statistical analysis I want to associate the 10 closest random points around my target points (cities) to the target points attribute table. I want to do this for multiple cities to afterwards get a mean distance of the city and its associated points to a target feature.
this is what I'd like the attribute table to look like. (excel just for visualisation). Has anyone made any experiences with this?
The closest you can get is Generate Near Table (Analysis)—ArcGIS Pro | Documentation
but usually for such an arrangement one uses scipy's cdist
or one of my old posts using numpy's einsum