pydata/pandas — pull request #5452 by dwiel (2013-11-06 14:38:00+00:00)
Title: add optional default value to GroupBy.get_group

I've used a try except block as opposed to and if else (below) to keep the non-default code path fast. What I didn't do:

if default is None :
inds = self.indices[name]
else :
inds = self.indices.get(name, default)