Skip to content

Commit

Permalink
Address PR reviews.
Browse files Browse the repository at this point in the history
  • Loading branch information
vyasr committed Apr 13, 2022
1 parent f7d9d36 commit c54dcde
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions python/cudf/cudf/core/frame.py
Original file line number Diff line number Diff line change
Expand Up @@ -919,8 +919,8 @@ def scatter_by_map(
"""
if not isinstance(self, cudf.DataFrame):
warnings.warn(
f"{self.__class__}.scatter_by_map is deprecated and will be "
"removed.",
f"{self.__class__.__name__}.scatter_by_map is deprecated and "
"will be removed.",
FutureWarning,
)

Expand Down Expand Up @@ -3404,7 +3404,7 @@ def _scan(self, op, axis=None, skipna=True):
"""
if isinstance(self, cudf.BaseIndex):
warnings.warn(
"This method is deprecated and will be removed.",
f"Index.{op} is deprecated and will be removed.",
FutureWarning,
)

Expand Down Expand Up @@ -3445,7 +3445,7 @@ def _scan(self, op, axis=None, skipna=True):
# TODO: This will work for Index because it's passing self._index
# (which is None), but eventually we may want to remove that parameter
# for Index._from_data and simplify.
return self._from_data(results, index=self._index)
return self._from_data(results, self._index)

@_cudf_nvtx_annotate
@ioutils.doc_to_json()
Expand Down

0 comments on commit c54dcde

Please sign in to comment.