Note: Before this question is closed as a duplicate (see 1, 2), I don't think data manipulation type questions are specifically addressed in this context. In particular, there is an argument that all such questions are duplicates, since each step is built on fundamentals which are often addressed by "canonical" answers. My fundamental question is: at what stage does a question become one in its own right, as opposed to too broad?
The question in question:
Apply multiple functions to multiple groupby columns
I choose this question because, on the surface, it looks good. Although lacking an [mcve]
, it shows the problem, what's been tried, and the desired output.
However, my first instinct was that there are canonical answers to the 2 main sub-questions:
Combined, these should be sufficient for OP to answer their question. I followed @JoshCaswell's advice on meta and closed as a dup of these 2 questions, but this was quickly reversed by a separate responder. I also managed to anger the questioner.
On top, I was subjected to this exchange:
Hi man, do you have bad day? – XXXXX 7 mins ago
@XXXXX, actually I've had a wonderful day. I reference 2 canonical questions with hundreds of upvotes for a reason..they are very good answers that are sufficient to help OP. – YYYYY 6 mins ago
OK, it is very good add it under question, but it is not dupe. Because close dupe as exact dupe is very nice, close same problem is good, but close like 2, 3 dupe is really bad and I dont understand why do it :( – XXXXX 4 mins ago
So simply close dupe because I am big boss it is really bad :( – XXXXX 4 mins ago
I include the above exchange only to present the opposite viewpoint, which may be valid.
Some of the highest ranking SO members of all time are data-manipulation responders [pandas, SQL, R tags come to mind]. This isn't surprising: there are uncountable combinations of scenarios / problems users will meet.
But I would much rather a question reference other solutions and remark where they got stuck, rather than just put 2 answers together for them. In addition, such a question would be more useful to the community.
My questions, in short:
- Is this specific question either too broad or a duplicate of other(s)?
- If "no" to the above, when would such a question become too broad or a duplicate?
[pandas]
,[SQL]
,[r]
, etc) and it seems we all have different ideas of what constitutes a duplicate.