Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/branch-24.02' into fix/build_c…
Browse files Browse the repository at this point in the history
…olumns
  • Loading branch information
mroeschke committed Jan 31, 2024
2 parents 25c1765 + 534b267 commit ad62988
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 ad62988

Please sign in to comment.