How to Solve NameError: name 'fft' is not defined -- scipy

Solution: Import the 'fft' module

To Solve the error, add the following line to the top of your code.

from scipy.fftpack import fft

 

For more information:
Python scipy fft