Changed pct_change parameters to calculate pct_change right-to-left f…
…or axis=1.

- [ ] closes #39672
- [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- For axis = 1, periods = -periods.
