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:
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: