source: orange/Orange/doc/ofb/lenses.py @ 9671:a7b056375472

Revision 9671:a7b056375472, 436 bytes checked in by anze <anze.staric@…>, 2 years ago (diff)

Moved orange to Orange (part 2)

Line 
1# Description: Read data, list attributes and class values, print first few data instances
2# Category:    description
3# Uses:        lenses.tab
4# Classes:     ExampleTable
5# Referenced:  load_data.htm
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.