source: orange/Orange/doc/reference/exampletable4.py @ 9671:a7b056375472

Revision 9671:a7b056375472, 378 bytes checked in by anze <anze.staric@…>, 2 years ago (diff)

Moved orange to Orange (part 2)

Line 
1import orange
2
3data = orange.ExampleTable("bridges")
4
5mid = data.filter(LENGTH=(1000, 2000))
6print "Selection: length between 1000 and 2000"
7for ex in mid:
8    print ex
9print
10
11
12mid = data.filter(LENGTH=(2000, 1000))
13print "Selection: length not between 1000 and 2000"
14for ex in mid:
15    print ex
16print
17
18data.sort("LENGTH", "ERECTED")
19print "Sorted"
20for ex in data:
21    print ex
Note: See TracBrowser for help on using the repository browser.