From 6727fc4a12df311ce1a3e079b94801dcff670da9 Mon Sep 17 00:00:00 2001 From: Vyas Ramasubramani Date: Wed, 4 Aug 2021 17:25:42 -0700 Subject: [PATCH] Fix last copy_construct issue. --- python/cudf/cudf/core/indexing.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/python/cudf/cudf/core/indexing.py b/python/cudf/cudf/core/indexing.py index e9af742a1f5..09cfc6e144a 100755 --- a/python/cudf/cudf/core/indexing.py +++ b/python/cudf/cudf/core/indexing.py @@ -98,10 +98,9 @@ def __getitem__(self, arg): or _is_null_host_scalar(data) ): return data - # return self._sr._from_data( - # {self._sr.name: data}, self._sr.index.take(arg)) - index = self._sr.index.take(arg) - return self._sr._copy_construct(data=data, index=index) + return self._sr._from_data( + {self._sr.name: data}, index=cudf.Index(self._sr.index.take(arg)) + ) def __setitem__(self, key, value): from cudf.core.column import column