source: orange/docs/tutorial/rst/code/data-missing.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("voting.tab")
4for x in data.domain.features:
5    n_miss = sum(1 for d in data if d[x].is_special())
6    print "%4.1f%% %s" % (100.*n_miss/len(data), x.name)
Note: See TracBrowser for help on using the repository browser.