Using python 2.7.3 and pandas 0.10.1, I am getting a deprecation warning when I try to use the ** operation to calculate power (mathematical, not thermodynamic). In the documentation, it covers the use of add, sub, mul, and div for Series and DataFrame arithmetic operations. However, I cannot find anything covering ** for these, as in 3 ** 2 = 9. What can I do besides use ** and hope for the best?
Best Answer
To calculate exponentiation between a time series and a data frame one should do:
dataFrame.pow(timeSeries, axis=0)
To calculate exponentiation between a series and a scalar one can still do:
timeSeries ** exponent