pydata/pandas — pull request #6909 by TomAugspurger (2014-04-18 13:10:39+00:00)
Title: ENH: Implement Panel pct_change

Closes https://github.com/pydata/pandas/issues/6904

There's just a bit of extra index handling that needs to be done before moving on to `generic.pct_change()`. I had to adjust that to use the `.div` and `.sub` ops instead of `/` and `-` to work with panels.

I wasn't sure why axis wasn't included as an actual names keyword arg. `generic` just looks for it in **kwargs. I did the same in panel.

A related issue was the `Panel.shift()` has a different argument signature than `generic.shift()`. I can make those consistent and put in a deprecation warning in this issue or in a new one.