Skip to content

Commit a7a0399

Browse files
add comment for unpartitioned agg index assignemtn
1 parent 1d0514b commit a7a0399

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

bigframes/core/blocks.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1199,6 +1199,7 @@ def aggregate(
11991199

12001200
grouping_col_labels: typing.List[Label] = []
12011201
if len(by_column_ids) == 0:
1202+
# in the absence of grouping columns, there will be a single row output, assign 0 as its row label.
12021203
result_expr, label_id = result_expr.create_constant(0, pd.Int64Dtype())
12031204
index_columns = (label_id,)
12041205
grouping_col_labels = [None]

0 commit comments

Comments
 (0)