scipyspatial
scipy.spatial is a subpackage of SciPy that provides algorithms and data structures for geometric problems. It offers tools for distance computation, spatial indexing, and tessellations, and works with NumPy arrays across multiple dimensions. The module is designed to support scientific computing workflows that require spatial reasoning.
Distance computations are organized under scipy.spatial.distance. It includes functions such as pdist, cdist, and squareform, enabling
Nearest-neighbor searches rely on KDTree and cKDTree, providing fast queries for nearest, radius-based, and range-limited neighbor
Spatial tessellations and hulls are provided via Voronoi, Delaunay, and ConvexHull classes. These constructs enable geometric
scipy.spatial is a core part of SciPy and relies on NumPy. It is widely used in data