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