BUG: Groupby.transform(name) should only accept valid names
https://github.com/pandas-dev/pandas/pull/27467#discussion_r305439508

Examples:
- `g.transform('invalid_name')`
- `g.transform('agg')`, attribute exists but isn't appropriate agg/transformation.
