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

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

Moved documentation to the separate directory.

Line 
1# Description: Export to Weka ARFF format
2# Category:    data
3# Uses:        iris
4# Referenced:  Orange.data.io
5# Classes:     Orange.data.io.toARFF
6
7import Orange
8table = Orange.data.Table('iris.tab')
9Orange.data.io.toARFF('iris.testsave.arff', table)
10table.save('iris.testsave.arff')
11f = open('iris.testsave.arff')
12for line in f:
13    print line.strip()
14f.close()
Note: See TracBrowser for help on using the repository browser.