From d92c257acc88522e775850c2166cd723321caf69 Mon Sep 17 00:00:00 2001 From: Ralph Liu <137829296+nv-rliu@users.noreply.github.com> Date: Thu, 8 Aug 2024 16:46:22 -0400 Subject: [PATCH] Fix `test_property_graph_mg` Usage of Util Function (#4600) This PR fixes an issue that recently arose due to a change in constructing a `cudf.Series` object. `test_property_graph_mg.py` uses a function from `utilities/utils.py` to construct a Series object from 2d arrays. The function is now using the correct `cudf.Series._from_column` API. Authors: - Ralph Liu (https://github.com/nv-rliu) Approvers: - Rick Ratzel (https://github.com/rlratzel) URL: https://github.com/rapidsai/cugraph/pull/4600 --- python/cugraph/cugraph/utilities/utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python/cugraph/cugraph/utilities/utils.py b/python/cugraph/cugraph/utilities/utils.py index 7a54a0bf2cf..d04322975c5 100644 --- a/python/cugraph/cugraph/utilities/utils.py +++ b/python/cugraph/cugraph/utilities/utils.py @@ -1,4 +1,4 @@ -# Copyright (c) 2020-2023, NVIDIA CORPORATION. +# Copyright (c) 2020-2024, NVIDIA CORPORATION. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at @@ -530,7 +530,7 @@ def create_list_series_from_2d_ar(ar, index): null_count=0, children=(offset_col, data), ) - return cudf.Series(lc, index=index) + return cudf.Series._from_column(lc, index=index) def create_directory_with_overwrite(directory):