source: orange/docs/tutorial/rst/code/lenses.py @ 9374:59bac7ddd8a2

Revision 9374:59bac7ddd8a2, 436 bytes checked in by mitar, 2 years ago (diff)

Tutorial documentation structure.

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.