source: orange/orange/doc/ofb/lenses.py @ 526:fe2d65da2b2a

Revision 526:fe2d65da2b2a, 421 bytes checked in by janezd <janez.demsar@…>, 9 years ago (diff)
  • moved documentation from a separate module to this one
Line 
1# Author:      B Zupan
2# Version:     1.0
3# Description: Read data, list attributes and class values, print first few data instances
4# Category:    description
5# Uses:        lenses.tab
6
7import orange
8data = orange.ExampleTable("lenses")
9print "Attributes:",
10for i in data.domain.attributes:
11    print i.name,
12print
13print "Class:", data.domain.classVar.name
14
15print "First 5 data items:"
16for i in range(5):
17    print data[i]
Note: See TracBrowser for help on using the repository browser.