PERF: perf improvements for Series.transform (revised) (GH6496)
Merge pull request #7975 from jreback/transform_perf

PERF: perf improvements for Series.transform (revised) (GH6496)