Share whitelist of apply / transform methods
xref https://github.com/pandas-dev/pandas/pull/20800

We have multiple places that need to know about this now, e.g. `DataFrameGroupby.apply` and `DataFrame.apply`