source: orange/docs/reference/rst/code/data.io-read.weka.py @ 9372:aef193695ea9

Revision 9372:aef193695ea9, 578 bytes checked in by mitar, 2 years ago (diff)

Moved documentation to the separate directory.

Line 
1# Description: Import from Weka ARFF format
2# Category:    data
3# Uses:        iris
4# Referenced:  Orange.data.io
5# Classes:     Orange.data.io.loadARFF
6
7import Orange
8table = Orange.data.io.loadARFF('iris.arff')
9print table.attribute_load_status
10print table.domain
11print table.domain.attributes
12print "\n".join(["\t".join([str(value) for value in row]) for row in table])
13print
14
15table = Orange.data.Table('iris.arff')
16print table.attribute_load_status
17print table.domain
18print table.domain.attributes
19print "\n".join(["\t".join([str(value) for value in row]) for row in table])
Note: See TracBrowser for help on using the repository browser.