Skip to content

Commit 5d581a3

Browse files
committed
fix(core): remove unpivot requirement for non-empty row labels
1 parent 4cd70f3 commit 5d581a3

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

bigframes/core/blocks.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3418,10 +3418,6 @@ def unpivot(
34183418
array_value, type="cross"
34193419
)
34203420

3421-
if not labels_array.column_ids:
3422-
# A valid unpivot operation requires at least one row label to disambiguate the output rows.
3423-
raise ValueError("unpivot requires non-empty row_labels")
3424-
34253421
new_passthrough_cols = [column_mapping[col] for col in passthrough_columns]
34263422
# Last column is offsets
34273423
index_col_ids = [labels_mapping[col] for col in labels_array.column_ids[:-1]]

0 commit comments

Comments
 (0)