source: orange/orange/doc/Orange/rst/code/distributions-basic-stat.py @ 7753:8c752fdc6da7

Revision 7753:8c752fdc6da7, 295 bytes checked in by lanz <lan.zagar@…>, 3 years ago (diff)

Fixed errors in code examples (regression tests).

Line 
1import Orange
2
3myData = Orange.data.Table("iris.tab")
4bas = Orange.statistics.basic.Domain(myData) 
5
6print "%20s %5s %5s %5s" % ("feature", "min", "max", "avg")
7for a in bas:
8    if a:
9        print "%20s %5.3f %5.3f %5.3f" % (a.variable.name, a.min, a.max, a.avg)
10
11print bas["sepal length"].avg
Note: See TracBrowser for help on using the repository browser.