forked from scipy/scipy
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
BUG: io: Stop guessing the data delimiter in ARFF files.
In the ARFF reader, there were several dozen lines of code that determined whether the delimiter in the @DaTa section of the ARFF file was a comma or a space. This code has been removed. The ARFF file format specification says the delimiter must be a comma. As a side effect, this closes scipygh-5276. 'loadarff' can now handle a file with no data in the @DaTa section.
- Loading branch information
1 parent
2ac949b
commit 802a07f
Showing
3 changed files
with
27 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
@RELATION iris | ||
|
||
@ATTRIBUTE sepallength REAL | ||
@ATTRIBUTE sepalwidth REAL | ||
@ATTRIBUTE petallength REAL | ||
@ATTRIBUTE petalwidth REAL | ||
@ATTRIBUTE class {Iris-setosa,Iris-versicolor,Iris-virginica} | ||
|
||
@DATA | ||
|
||
% This file has no data |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters