From 4b6cb9f429eb794d9de3d726bf04a1c686f4270d Mon Sep 17 00:00:00 2001 From: Matthew Roeschke <10647082+mroeschke@users.noreply.github.com> Date: Tue, 27 Feb 2024 16:35:51 -0800 Subject: [PATCH] Replace cudf column.full with cudf.as_column --- python/cuspatial/cuspatial/core/binops/distance_dispatch.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/python/cuspatial/cuspatial/core/binops/distance_dispatch.py b/python/cuspatial/cuspatial/core/binops/distance_dispatch.py index c19953107..8588b8db5 100644 --- a/python/cuspatial/cuspatial/core/binops/distance_dispatch.py +++ b/python/cuspatial/cuspatial/core/binops/distance_dispatch.py @@ -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, @@ -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(