This is documentation for an old release of SciPy (version 0.9.0). Read this page in the documentation of the latest stable release (version 1.15.1).
Read an arff file.
The data is returned as a record array, which can be accessed much like a dictionary of numpy arrays. For example, if one of the attributes is called ‘pressure’, then its first 10 data points can be accessed from the data record array like so: data['pressure'][0:10]
Parameters : | filename : str
|
---|---|
Returns : | data : record array
meta : MetaData
|
Raises : | `ParseArffError` :
NotImplementedError :
|
Notes
This function should be able to read most arff files. Not implemented functionality include:
It can read files with numeric and nominal attributes. It cannot read files with sparse data ({} in the file). However, this function can read files with missing data (? in the file), representing the data points as NaNs.