I have a series of data indexed by time values (float), and I want to take pieces of a series and draw them on top of each other. So, for example, let's say I have stock prices made about every 10 minutes for 20 weeks, and I want to see a weekly template by building 20 lines of stock prices. So my X axis is one week and I have 20 rows (corresponding to prices for the week).
Update
The index is not a uniformly distributed value and is a floating point. This is something like:
t = np.arange(0,12e-9,12e-9/1000.0)
noise = np.random.randn(1000)/1e12
cn = noise.cumsum()
t_noise = t+cn
y = sin(2*math.pi*36e7*t_noise) + noise
df = DataFrame(y,index=t_noise,columns=["A"])
df.plot(marker='.')
plt.axis([0,0.2e-8,0,1])
Thus, the index is not evenly distributed. I am dealing with voltage and time data from a simulator. I would like to know how to create a time window, T and split df into pieces of T long and stack them on top of each other. Therefore, if the data was 20 * T long, then I would have 20 rows in the same section.
Sorry for the confusion; I used the stock analogy, thinking this might help.
source
share