Tag Info

New answers tagged


I posted multiple times on this Q, e.g here. It seems though I did poor explaining of how my method of grouping works, because so many users are struggling to understand it. This is another attempt based on the most basic of all examples I can come up with. Let's put 6 points on straight line: and try to create 3 groups with equal count of memebers in ...


I think I understand what you want to do. For each unique value in "Field", you want to find the most recent date in "Date" and set its value to "Y" in "Flagged_Field". I used your field naming conventions, but you need to avoid using keywords like Field and Date for your field names. import itertools def getGrouper(row): """Key function to retrieve ...

Top 50 recent answers are included