How to Solve NameError: name 'savetxt' is not defined -- numpy

Solution: Import the 'savetxt' module

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

from numpy import savetxt

 

For more information:
Python numpy savetxt