python - Calculating power in pandas -
using python 2.7.3 , pandas 0.10.1, getting deprecation warning when try use ** operation calculate power (mathematical, not thermodynamic). in documentation, covers use of add, sub, mul, , div series , dataframe arithmetic operations. however, cannot find covering ** these, in 3 ** 2 = 9. can besides use ** , hope best?
to calculate exponentiation between time series , data frame 1 should do:
dataframe.pow(timeseries, axis=0)
to calculate exponentiation between series , scalar 1 can still do:
timeseries ** exponent
Comments
Post a Comment