Skip to content

Commit

Permalink
change DeprecationWarning to FutureWarning
Browse files Browse the repository at this point in the history
  • Loading branch information
davidwendt committed Nov 7, 2024
1 parent 7446d53 commit 1ed78a4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions python/cudf/cudf/core/column/string.py
Original file line number Diff line number Diff line change
Expand Up @@ -5355,6 +5355,7 @@ def minhash_permuted(
) -> SeriesOrIndex:
"""
Compute the minhash of a strings column.
This uses the MurmurHash3_x86_32 algorithm for the hash function.
Calculation uses the formula (hv * a + b) % mersenne_prime
Expand Down Expand Up @@ -5407,6 +5408,7 @@ def minhash64(
) -> SeriesOrIndex:
"""
Compute the minhash of a strings column.
This uses the MurmurHash3_x64_128 algorithm for the hash function.
This function generates 2 uint64 values but only the first
uint64 value is used.
Expand Down
4 changes: 2 additions & 2 deletions python/pylibcudf/pylibcudf/nvtext/minhash.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ cpdef Column minhash(Column input, ColumnOrScalar seeds, size_type width=4):
warnings.warn(
"Starting in version 25.02, the signature of this function will "
"be changed to match pylibcudf.nvtext.minhash_permuted.",
DeprecationWarning
FutureWarning
)

cdef unique_ptr[column] c_result
Expand Down Expand Up @@ -133,7 +133,7 @@ cpdef Column minhash64(Column input, ColumnOrScalar seeds, size_type width=4):
warnings.warn(
"Starting in version 25.02, the signature of this function will "
"be changed to match pylibcudf.nvtext.minhash64_permuted.",
DeprecationWarning
FutureWarning
)

cdef unique_ptr[column] c_result
Expand Down

0 comments on commit 1ed78a4

Please sign in to comment.