O'Reilly logo
  • Zach Hammer thinks this is interesting:

I now compute percent changes of the prices, a time series operation which will be explored further in Chapter 11:

In [242]: returns = price.pct_change()

In [243]: returns.tail()
Out[243
		

From

Cover of Python for Data Analysis, 2nd Edition

Note

It'd be great if there were a printout of the actual yahoo data first.