Skip to content

Lupl/maybe drop group key#17

Merged
lu-pl merged 2 commits into
mainfrom
lupl/maybe-drop-group-key
Jun 22, 2026
Merged

Lupl/maybe drop group key#17
lu-pl merged 2 commits into
mainfrom
lupl/maybe-drop-group-key

Conversation

@lu-pl

@lu-pl lu-pl commented Jun 22, 2026

Copy link
Copy Markdown
Owner

No description provided.

@lu-pl lu-pl force-pushed the lupl/maybe-drop-group-key branch from 0509be9 to ecbe01f Compare June 22, 2026 07:14
lu-pl added 2 commits June 22, 2026 09:17
The change drops the grouping key from the result dataframe if the grouping key is not defined as a
model field.

This concerns only top models - here group/agg is used which adds the grouping key as
a column by default. If a model does not define the grouping key as a field, keeping the grouping
key in the dataframe/row binding is unexpected.

Closes #16.
The change adds a simple test for checking that the grouping key gets dropped if it is not defined
as a field in the model.
@lu-pl lu-pl force-pushed the lupl/maybe-drop-group-key branch from ecbe01f to d660da3 Compare June 22, 2026 07:18
@lu-pl lu-pl merged commit 4feebb9 into main Jun 22, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant