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

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

new tutorial

Line 
1import Orange
2data = Orange.data.Table("lenses")
3print "N1=%d" % len(data)
4new_data = Orange.data.Table([d for d in data if d["prescription"]=="myope"])
5print "N2=%d" %len(new_data)
6new_data.save("lenses-subset.tab")
Note: See TracBrowser for help on using the repository browser.