last day (16 days later) » 

6:30 PM
Tom?
 
Tom
Hey! I would support OP accepting your answer over mine per this post about first responding: meta.stackexchange.com/questions/1096/….
I posted my answer originally b/c there was different expected output based on how OP had edited their data; that with the small differences in approach I thought warranted an additional answer.
 
Hey Tom! Thanks for supporting this change
 
Tom
6:46 PM
Would also be open to taking down my answer; yet I think the comments contain enough discussion/new information related to the question that it may be useful to leave up.
I have upvoted your answer, unless OP has a different perspective/reasoing then I think accepting yours is fair
 
Yeah, I saw the differences between our answers. But, since you used apply too, I didn't get why OP, accept your answer. But yes, as you said and the links you attach said, sometimes apply will be slower.
But seriously Tom, thank you for being willing to discuss this and agree to it, not many people are as reasonable and correct as you. I've got a lot of this kind of problems... But even flag them didn't solve my issues. As this 'first responder' thing is sometimes ignored by new POs and is quite unfair to first responders.
 
Tom
7:05 PM
No problem, glad to try and sort these things out. I've been in your position several times before (or have not been credited for answers in other ways). At the end of the day it is down to the poster to do what they want with the power to accept and upvote, however they desire. But I think the community improves when we try to encourage doing things a certain way, and giving credit when due
Sorry if my answer seemed like a full duplicate to you; I thought I had a little to add but I realize that is debatable
 
7:24 PM
Yeah, that's right, it's the reality behind the site. and no worries, your answer is slight different as you said, and yes, that differences could be debatables.
Yeah, taking down your answer could be an option,since Pysnek313 didn't came. Maybe to not loss information you posted that is actually very useful, I can edit my answer and write something like:
Thanks to Tom for emphatize this point of use or not use apply. So why not use apply:

"See this thread about apply, basically you get convenience at the price of speed. I still like apply and think it is very intuitive to use, but I think it's a "bad habit", especially when scaling up.
If you can't use numpy or pandas vectorized methods (which may be possible here, I don't know), one option to avoid apply is use list comprehensions instead, but I couldn't solve that here, and I think the answer may be fairly convoluted either way (more so than apply, I would guess)."
 
Tom
7:57 PM
I would wait for OP to reply to the thread/this chat, I reckon they just haven't seen it yet, but they should be getting notifications from your comments. I think we should see if OP agrees b/c if they don't deleting my answer will lose the content and not promote yours to being accepted (I believe?)
 
Sure, you are right, so let's wait
 
 
3 hours later…
11:21 PM
room mode changed to Gallery: anyone may enter, but only approved users can talk
room mode changed to Public: anyone may enter and talk
room mode changed to Gallery: anyone may enter, but only approved users can talk
 

  last day (16 days later) »