From c54dcdeb603443b2f0752722a758c807ff37a199 Mon Sep 17 00:00:00 2001 From: Vyas Ramasubramani Date: Wed, 13 Apr 2022 14:24:58 -0700 Subject: [PATCH] Address PR reviews. --- python/cudf/cudf/core/frame.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/python/cudf/cudf/core/frame.py b/python/cudf/cudf/core/frame.py index d233064f8d2..806cdf14c71 100644 --- a/python/cudf/cudf/core/frame.py +++ b/python/cudf/cudf/core/frame.py @@ -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, ) @@ -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, ) @@ -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()