Skip to content

Commit

Permalink
Merge pull request #1331 from rapidsai/branch-24.02
Browse files Browse the repository at this point in the history
Forward-merge branch-24.02 to branch-24.04
  • Loading branch information
GPUtester authored Jan 23, 2024
2 parents 0a321ec + 534b267 commit 90d5446
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 90d5446

Please sign in to comment.