Can we not do something like (?):

    {g.grouper.levels[k] for k, v in pd.core.groupby._groupby_indices(b.bins).iteritems()}

*may* be faster...