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