diff --git a/python/cudf/cudf/core/series.py b/python/cudf/cudf/core/series.py index 04fd79e0962..d409a609051 100644 --- a/python/cudf/cudf/core/series.py +++ b/python/cudf/cudf/core/series.py @@ -2766,8 +2766,10 @@ def quantile( if return_scalar: return result - return Series( - result, index=np_array_q if quant_index else None, name=self.name + return Series._from_data( + data={None: result}, + index=as_index(np_array_q) if quant_index else None, + name=self.name, ) @docutils.doc_describe()