From 83250b3e1d9b67ac22aba4e62d91169f52cdc5a7 Mon Sep 17 00:00:00 2001 From: Keith Kraus Date: Thu, 11 Feb 2021 16:18:37 -0500 Subject: [PATCH] add sort=True to groupby --- test/cudf/test_diningparty.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/cudf/test_diningparty.py b/test/cudf/test_diningparty.py index 4b6c847a..35180265 100644 --- a/test/cudf/test_diningparty.py +++ b/test/cudf/test_diningparty.py @@ -12,7 +12,7 @@ def test_diningparty() : tips_df['tip_percentage'] = tips_df['tip']/tips_df['total_bill']*100 # compute the average tip by dining party size - cudfSeries = tips_df.groupby('size').tip_percentage.mean() + cudfSeries = tips_df.groupby('size', sort=True).tip_percentage.mean() # the expected average tip percentage for parties sized 1, 2, 3, # etc. for the data set.