1) Select the variable you want to change, then Press CTRL + R2) Enter the new variable name you want. (in replace by)3) Replace all
No way to do it currently. It's an open issue.https://github.com/spyder-ide/spyder/issues/415
Alternatively, PyCharm can be used instead of Spyder, which is now supported in Anaconda.
In PyCharm: Select the variable > Right Click > Refactor > Rename