DE version is available. Content is displayed in original English for accuracy.
Advertisement
Advertisement
⚡ Community Insights
Discussion Sentiment
75% Positive
Analyzed from 121 words in the discussion.
Trending Topics
#similar#before#practice#may#great#sql#ish#api#python#starts

Discussion (4 Comments)Read Original on HackerNews
groupby has an as_index parameter for this very purpose
> Deducting the discount
You focus on doing the subtraction during the group by. Is there any good reason for this? You could either do it as a step before, or after summing up both columns. Putting too many things into one command is not good practice yet you benchmark the language based on how easy it is to do said bad practice
that ended rather abruptly?