source: orange/docs/reference/rst/code/instance-metavar.py @ 9638:eb3af38491f2

Revision 9638:eb3af38491f2, 163 bytes checked in by umek@…, 2 years ago (diff)

Changed table to data or name of the data set.

For example - instead of

table = Orange.data.Table("housing")

is changed to

housing = Orange.data.Table("housing")

Line 
1import random
2import Orange
3lenses = Orange.data.Table("lenses")
4id = Orange.data.new_meta_id()
5for inst in lenses:
6    inst[id] = random.random()
7print lenses[0]
Note: See TracBrowser for help on using the repository browser.