Skip to content

Commit

Permalink
Fix test_property_graph_mg Usage of Util Function (#4600)
Browse files Browse the repository at this point in the history
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: #4600
  • Loading branch information
nv-rliu authored Aug 8, 2024
1 parent c2362c2 commit d92c257
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/cugraph/cugraph/utilities/utils.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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):
Expand Down

0 comments on commit d92c257

Please sign in to comment.