PERF: groupby / frame apply optimization
NETWORK: change failing FRED test
Merge pull request #7881 from jreback/apply_optimize

PERF: groupby / frame apply optimization
ENH: Add optional level argument to set_names(), set_levels() and set_labels() (GH7792)