source: orange/Orange/testing/regression/tests_20/reference_exampletable4.py @ 9952:986e9cd806f4

Revision 9952:986e9cd806f4, 378 bytes checked in by Miha Stajdohar <miha.stajdohar@…>, 2 years ago (diff)

Tests moved and renamed from orange 20.

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.