Skip to content

Commit

Permalink
Change all DeprecationWarnings to FutureWarning.
Browse files Browse the repository at this point in the history
  • Loading branch information
bdice committed Oct 6, 2021
1 parent 4e7c820 commit 1b78517
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions python/cudf/cudf/core/dataframe.py
Original file line number Diff line number Diff line change
Expand Up @@ -3697,7 +3697,7 @@ def as_gpu_matrix(self, columns=None, order="F"):
warnings.warn(
"The as_gpu_matrix method will be removed in a future cuDF "
"release. Consider using `to_cupy` instead.",
DeprecationWarning,
FutureWarning,
)
if columns is None:
columns = self._data.names
Expand Down Expand Up @@ -3745,7 +3745,7 @@ def as_matrix(self, columns=None):
warnings.warn(
"The as_matrix method will be removed in a future cuDF "
"release. Consider using `to_numpy` instead.",
DeprecationWarning,
FutureWarning,
)
return self.as_gpu_matrix(columns=columns).copy_to_host()

Expand Down
2 changes: 1 addition & 1 deletion python/cudf/cudf/core/frame.py
Original file line number Diff line number Diff line change
Expand Up @@ -5372,7 +5372,7 @@ def to_gpu_array(self, fillna=None):
warnings.warn(
"The to_gpu_array method will be removed in a future cuDF "
"release. Consider using `to_cupy` instead.",
DeprecationWarning,
FutureWarning,
)
return self._column.to_gpu_array(fillna=fillna)

Expand Down
2 changes: 1 addition & 1 deletion python/cudf/cudf/core/series.py
Original file line number Diff line number Diff line change
Expand Up @@ -2484,7 +2484,7 @@ def to_array(self, fillna=None):
warnings.warn(
"The to_array method will be removed in a future cuDF "
"release. Consider using `to_numpy` instead.",
DeprecationWarning,
FutureWarning,
)
return self._column.to_array(fillna=fillna)

Expand Down

0 comments on commit 1b78517

Please sign in to comment.