How do I create a new field in pandas that is a log of another field?
df =pd.read_csv('tseries.txt',parse_dates=True,index_col=0)
df['exr_ln']=math.log(df['exr'])
Traceback (most recent call last):
File "/home/ubuntu/workspace/chaos/forecast.py", line 212, in <module>
df['exr_ln']=math.log(df['exr'])
TypeError: only length-1 arrays can be converted to Python scalars