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