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`