Can anyone tell me how to shift a series of data one unit of time when graphing in the research environment?
For example, I want to compare how Stock A's performance last unit of time (either a day ago or a minute ago) is related to how Stock B will perform now. I want to plot them together, but shift Stock A's data one unit of time so it lines up with "the future" for Stock B.
I'm assuming this is pretty trivial to people well versed in python plotting, but any help would be greatly appreciated. Thanks!