Skip to content

Commit

Permalink
Replace cudf column.full with cudf.as_column
Browse files Browse the repository at this point in the history
  • Loading branch information
mroeschke committed Feb 28, 2024
1 parent 603d764 commit 4b6cb9f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions python/cuspatial/cuspatial/core/binops/distance_dispatch.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import cudf
from cudf.core.column import as_column, full
from cudf.core.column import as_column

from cuspatial._lib.distance import (
pairwise_linestring_distance,
Expand Down Expand Up @@ -185,9 +185,9 @@ def __call__(self):

# Rows with misaligned indices contains nan. Here we scatter the
# distance values to the correct indices.
result = full(
len(self._res_index),
result = as_column(
float("nan"),
length=len(self._res_index),
dtype="float64",
)
scatter_map = as_column(
Expand Down

0 comments on commit 4b6cb9f

Please sign in to comment.