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.