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

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -