Re: Broadcasting TimeSeries

2013-09-04 Thread Terry Reedy
On 9/4/2013 4:06 PM, Davide Dalmasso wrote: I opened my Python Shell and I wrote the following: This is with Idle. I believe you are running on Windows. import numpy as np import pandas as pd then I made a function def afunc(aframe): return aframe - aframe.mean(axis=1) and I defin

Broadcasting TimeSeries

2013-09-04 Thread Davide Dalmasso
Hello, I opened my Python Shell and I wrote the following: >>> import numpy as np >>> import pandas as pd then I made a function >>> def afunc(aframe): return aframe - aframe.mean(axis=1) and I defined a DataFrame with time as index >>> A = >>> pd.DataFrame(np.random.randn(5,3),columns=[