source: orange/docs/reference/rst/code/instance-metavar.py @ 9525:4ecaecab0671

Revision 9525:4ecaecab0671, 157 bytes checked in by markotoplak, 2 years ago (diff)

Used the same get_meta_id everywhere.

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