source: orange/docs/reference/rst/code/instance-construct.py @ 9372:aef193695ea9

Revision 9372:aef193695ea9, 319 bytes checked in by mitar, 2 years ago (diff)

Moved documentation to the separate directory.

Line 
1import Orange
2data = Orange.data.Table("lenses")
3domain = data.domain
4inst = Orange.data.Instance(domain, ["young", "myope",
5                               "yes", "reduced", "soft"])
6print inst
7inst = Orange.data.Instance(domain, ["young", 0, 1,
8            Orange.data.Value(domain[3], "reduced"), "soft"])
9print inst
Note: See TracBrowser for help on using the repository browser.