PERF: Series.transform speedups (GH6496)
Merge pull request #7421 from jreback/transform_speed

PERF: Series.transform speedups (GH6496)