Skip to content

Commit

Permalink
Fix the exception when there's only one signle dimension selected
Browse files Browse the repository at this point in the history
  • Loading branch information
dyang415 committed Sep 26, 2023
1 parent a024590 commit a550725
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/app/insight/services/insight_builders.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))

Expand Down

0 comments on commit a550725

Please sign in to comment.