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

Solution: Import the 'genfromtxt' module

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

from numpy import genfromtxt

 

For more information:
Python numpy genfromtxt