pydata/pandas — pull request #5510 by hayd (2013-11-14 00:13:44+00:00)
Title: ENH add cumcount groupby method

closes #4646

Happy to make this faster, but I think this is a good convenience function as is.