C:\Users\Sole\Documents\Repositories\envs\fsml\lib\site-packages\feature_engine\transformation\power.py:147: FutureWarning: Setting an item of incompatible dtype is deprecated and will raise in a future error of pandas. Value '[1. 2. 1.73205081 ... 1.73205081 1.73205081 1.73205081]' has dtype incompatible with int64, please explicitly cast to a compatible dtype first.
X.loc[:, self.variables_] = np.power(X.loc[:, self.variables_], self.exp)
C:\Users\Sole\Documents\Repositories\envs\fsml\lib\site-packages\feature_engine\transformation\power.py:147: FutureWarning: Setting an item of incompatible dtype is deprecated and will raise in a future error of pandas. Value '[1. 1. 1.41421356 ... 0. 1.73205081 1. ]' has dtype incompatible with int64, please explicitly cast to a compatible dtype first.
X.loc[:, self.variables_] = np.power(X.loc[:, self.variables_], self.exp)