-
-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Raise informative error message when group_by(by=[...])
is used
#17540
Comments
repeat of this. |
@deanm0000 I saw @ritchie46 comment there about using kwarg as syntactic suger, but it still feels very odd to get a list type when 2 columns are supplied, as result. Are you sure it is intended? |
yeah, the list just gets interpreted as a literal, just like how it would here:
|
having said that, there's no valid use case for grouping by a list literal...I think it might be worthwhile to raise an informative error here |
group_by
with by
kwarggroup_by(by=[...])
is used
@MarcoGorelli Agree |
It is intended that you don't use |
Checks
Reproducible example
Results in:
However, the following:
Results in:
Log output
No response
Issue description
When using the
by
kwarg, we getList
type as column.Expected behavior
I would expect using the
by
kwarg to yeild the same result.Installed versions
The text was updated successfully, but these errors were encountered: