NumPy · Function
np.loadtxt
Reads numeric or structured data from text and returns a NumPy array. It supports separators, comments, selected columns, converters, quoted fields, and compressed files.
Last updated
Syntax
numpy.loadtxt(fname, dtype=<class 'float'>, comments='#', delimiter=None, converters=None, skiprows=0, usecols=None, unpack=False, ndmin=0, encoding=None, max_rows=None, *, quotechar=None, like=None)In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
numpy.genfromtxt