In #54666 and #61032 we introduce the engine parameter to DataFrame.apply which allows users to run the operation with a third-party engine.
The rest of apply and map methods can also benefit from this.
In a first phase we can do:
Series.map
Series.apply
DataFrame.map
Then we can continue with the transform and group by ones.