From fe9dc78ab7e280478f99b8fa5aeaa47aed884f36 Mon Sep 17 00:00:00 2001 From: rjzamora Date: Thu, 27 Oct 2022 09:27:45 -0700 Subject: [PATCH] minor code-review change --- python/cudf/cudf/_lib/cpp/quantiles.pxd | 2 +- python/cudf/cudf/core/dataframe.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/python/cudf/cudf/_lib/cpp/quantiles.pxd b/python/cudf/cudf/_lib/cpp/quantiles.pxd index c0a245d4660..03fda16856c 100644 --- a/python/cudf/cudf/_lib/cpp/quantiles.pxd +++ b/python/cudf/cudf/_lib/cpp/quantiles.pxd @@ -1,4 +1,4 @@ -# Copyright (c) 2020-2022, NVIDIA CORPORATION. +# Copyright (c) 2020, NVIDIA CORPORATION. from libcpp cimport bool from libcpp.memory cimport unique_ptr diff --git a/python/cudf/cudf/core/dataframe.py b/python/cudf/cudf/core/dataframe.py index 94f02acdfe3..f5795140e99 100644 --- a/python/cudf/cudf/core/dataframe.py +++ b/python/cudf/cudf/core/dataframe.py @@ -5335,7 +5335,7 @@ def quantile( if q_is_number and numeric_only: result = result.fillna(np.nan).iloc[0] - result.index = data_df._data.to_pandas_index() + result.index = data_df.keys() result.name = q return result