Looks like this should fail since self.groupby can be None.