How to Solve NameError: name 'shift' is not defined -- scipy
Solution: Import the 'shift' module
To Solve the error, add the following line to the top of your code.
from scipy.ndimage.interpolation import shift
For more information:
Python scipy shift