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

Revision 9638:eb3af38491f2, 323 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 Orange
2lenses = Orange.data.Table("lenses")
3domain = lenses.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.