source: orange/docs/tutorial/rst/code/data-subsetting.py @ 11052:c22077a09e63

Revision 11052:c22077a09e63, 197 bytes checked in by blaz <blaz.zupan@…>, 16 months ago (diff)

new tutorial

Line 
1import Orange
2
3data = Orange.data.Table("iris.tab")
4new_data = Orange.data.Table([d for d in data if d["petal length"]>3.0])
5print "Subsetting from %d to %d instances." % (len(data), len(new_data))
Note: See TracBrowser for help on using the repository browser.