Ignore:
Timestamp:
02/05/12 22:37:07 (2 years ago)
Author:
umek@…
Branch:
default
rebase_source:
eb6a120705f3462186b982a698c0a7ad9f947e24
Message:

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")

File:
1 edited

Legend:

Unmodified
Added
Removed
  • docs/reference/rst/code/data.io-read.weka.py

    r9372 r9638  
    66 
    77import Orange 
    8 table = Orange.data.io.loadARFF('iris.arff') 
    9 print table.attribute_load_status 
    10 print table.domain 
    11 print table.domain.attributes 
    12 print "\n".join(["\t".join([str(value) for value in row]) for row in table]) 
     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]) 
    1313print 
    1414 
    15 table = Orange.data.Table('iris.arff') 
    16 print table.attribute_load_status 
    17 print table.domain 
    18 print table.domain.attributes 
    19 print "\n".join(["\t".join([str(value) for value in row]) for row in table]) 
     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 TracChangeset for help on using the changeset viewer.