Calculating the percent change at each sample of a series

The percentage change over a given number of periods can be calculated using the .pct_change() method. A sample use for percentage change is in calculating the rate of change of price of a stock. The following code shows this for MSFT:

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset