-
Notifications
You must be signed in to change notification settings - Fork 188
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
Missleading warning in query "buckets()" #568
Comments
The same issue arises for certain other queries where pivot is meaningless. For example, from the schema module:
produces the warning:
Here:
If the warning does serve a purpose elsewhere in the codebase, then this problem eliminates that possibility. Personally, I don't think blindly checking for a pivot is the way to go here. There are other ways in which even regular queries can be constructed to return data frame friendly results, and the warning gives pause when a pause is not needed. I think leaving it to the user to look at the dataframe and reshape to get whatever is needed is perfectly acceptable, instead of the choice the library presently gives of : a) forcing a pivot For reference, this is what the (unpivoted) reponse looks like:
|
Specifications
the last step prints a warning messages that provides a non-working solution. The solution does not apply to the returned table.
Code sample to reproduce problem
Expected behavior
Either the suggested solution should be correct, or no warning should be emitted.
Actual behavior
A solution is provided that does not apply to the returned table.
Additional info
No response
The text was updated successfully, but these errors were encountered: