-
Notifications
You must be signed in to change notification settings - Fork 142
TPCH Queries 9 and 10 #407
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your PR :)
It looks good, I have just added a couple of comments. Not sure if they were discussed somewhere else.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Comparing to this, the .round(2)
is missing after the sum in line 40 of the 3rd cell
In case it wasn't previously discussed to omit it, I think it should be added.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As in the other comment, I'd add the round(2)
after nw.sum
.
Out of curiosity, do we get an error if we don't create the revenue
column before the group by?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Initially, the revenue column was created inside the agg
with the round(2)
, but it gave a UserWarning of a "complex group-by expression" from the pandas API and it slows it down significantly for pandas.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What type of PR is this? (check all applicable)
Related issues
Checklist
If you have comments or can explain your changes, please do so below.
TPCH Benchmarking Queries 9 and 10