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

Revision 9638:eb3af38491f2, 568 bytes checked in by umek@…, 2 years ago (diff)

Changed table to data or name of the data set.

For example - instead of

table = Orange.data.Table("housing")

is changed to

housing = Orange.data.Table("housing")

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
8iris = Orange.data.io.loadARFF('iris.arff')
9print iris.attribute_load_status
10print iris.domain
11print iris.domain.attributes
12print "\n".join(["\t".join([str(value) for value in row]) for row in iris])
13print
14
15iris = Orange.data.Table('iris.arff')
16print iris.attribute_load_status
17print iris.domain
18print iris.domain.attributes
19print "\n".join(["\t".join([str(value) for value in row]) for row in iris])
Note: See TracBrowser for help on using the repository browser.