One more bug fix

The for loop used `psi5_groupby` instead of `groupby`.