That generators must return bytes or strings. Parameters : fname file, str, pathlib.Path, list of str, generatorįile, filename, list, or generator to read. loadtxt ( fname, dtype=, comments='#', delimiter=None, converters=None, skiprows=0, usecols=None, unpack=False, ndmin=0, encoding='bytes', max_rows=None, *, quotechar=None, like=None ) # Status of numpy.distutils and migration advice.Discrete Fourier Transform ( numpy.fft).Mathematical functions with automatic domain.C-Types foreign function interface ( numpy.ctypeslib).