Skip to content

Commit

Permalink
Remove use of cudf.core.column.full. (#5794)
Browse files Browse the repository at this point in the history
CI is failing because some functions use `cudf.core.column.full` which was recently removed. This PR changes that to a supported constructor.

xref: rapidsai/cudf#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: #5794
  • Loading branch information
bdice authored Mar 5, 2024
1 parent d426596 commit 73e04e2
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -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.
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 73e04e2

Please sign in to comment.