Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change all DeprecationWarnings to FutureWarning. #9392

Merged
merged 1 commit into from
Oct 7, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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