From 73e04e2753a15ab9c5ed9a43a1ce10a9fffc56bb Mon Sep 17 00:00:00 2001 From: Bradley Dice Date: Tue, 5 Mar 2024 14:55:57 -0800 Subject: [PATCH] Remove use of cudf.core.column.full. (#5794) CI is failing because some functions use `cudf.core.column.full` which was recently removed. This PR changes that to a supported constructor. xref: https://github.com/rapidsai/cudf/pull/14698 cc: @mroeschke @galipremsagar Authors: - Bradley Dice (https://github.com/bdice) - GALI PREM SAGAR (https://github.com/galipremsagar) Approvers: - GALI PREM SAGAR (https://github.com/galipremsagar) - Matthew Roeschke (https://github.com/mroeschke) - Dante Gama Dessavre (https://github.com/dantegd) URL: https://github.com/rapidsai/cuml/pull/5794 --- .../text/stem/porter_stemmer_utils/suffix_utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python/cuml/preprocessing/text/stem/porter_stemmer_utils/suffix_utils.py b/python/cuml/preprocessing/text/stem/porter_stemmer_utils/suffix_utils.py index c616739ade..d030345676 100644 --- a/python/cuml/preprocessing/text/stem/porter_stemmer_utils/suffix_utils.py +++ b/python/cuml/preprocessing/text/stem/porter_stemmer_utils/suffix_utils.py @@ -1,5 +1,5 @@ # -# 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. @@ -29,7 +29,7 @@ def get_str_replacement_series(replacement, bool_mask): Get replacement series with replacement at Places marked by bool mask and empty other wise """ - word_ser = cudf.Series(cudf.core.column.full(len(bool_mask), "")) + word_ser = cudf.Series([""] * len(bool_mask)) word_ser.iloc[bool_mask] = replacement return word_ser