Skip to content

Commit

Permalink
Merge branch 'branch-24.04' into update-version
Browse files Browse the repository at this point in the history
  • Loading branch information
jameslamb authored Jan 25, 2024
2 parents 60855e1 + 90d5446 commit 68a4b4b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion python/cuspatial/cuspatial/core/spatial/distance.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,9 @@ def directed_hausdorff_distance(multipoints: GeoSeries):
as_column(multipoints.multipoints.geometry_offset[:-1]),
)

return DataFrame._from_columns(result, range(num_spaces))
# the column label of each column in result should be its int position
# e.g. a dict of {0: result[0], 1, result[1], ...}
return DataFrame._from_data(dict(enumerate(result)))


def haversine_distance(p1: GeoSeries, p2: GeoSeries):
Expand Down

0 comments on commit 68a4b4b

Please sign in to comment.