From a5507250d146bb216a4527a092757bc0a610b0fd Mon Sep 17 00:00:00 2001 From: Daiyi Yang Date: Tue, 26 Sep 2023 13:39:50 -0700 Subject: [PATCH] Fix the exception when there's only one signle dimension selected --- backend/app/insight/services/insight_builders.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/app/insight/services/insight_builders.py b/backend/app/insight/services/insight_builders.py index 6008835..8113f3c 100644 --- a/backend/app/insight/services/insight_builders.py +++ b/backend/app/insight/services/insight_builders.py @@ -66,7 +66,7 @@ def __init__(self, self.overall_aggregated_df = self.gen_agg_df() column_combinations_list = [] - for i in range(1, min(4, len(self.group_by_columns))): + for i in range(1, min(3, len(self.group_by_columns)) + 1): column_combinations_list.extend( combinations(self.group_by_columns, i))