title: Orange, Python: list index out of range Association Rules - how does the data need to look like?
body: <p>I'm playing around with the Orange Association Rules sample.
  <a href="http://orange.biolab.si/docs/latest/reference/rst/Orange.associate.html" rel="nofollow">Orange Doc</a><br>
  My code looks pretty much like in the docs:</p>
  
  <pre><code>import Orange
  data = Orange.data.Table("order_data.basket")
  
  rules = Orange.associate.AssociationRulesSparseInducer(data, support = 0.5)
  
  print "%5s   %5s" % ("supp", "conf")
  for r in rules:
      print "%5.3f   %5.3f   %s" % (r.support, r.confidence, r)
  
  inducer = Orange.associate.AssociationRulesSparseInducer(support = 0.5, store_examples = True)
  itemsets = inducer.get_itemsets(data)
  # print itemsets
  print [data.domain[i].name for i in itemsets[5][0]]
  </code></pre>
  
  <p>And it's working with the data from Orange</p>
  
  <blockquote>
    <p>our, two, weapons, are, fear, and, surprise, and, ruthless, efficiency<br>
    our, three, weapons, are, fear, surprise, and, ruthless, efficiency, and, an, almost, fanatical, devotion, to, the, Pope<br>
    our<br>
    amongst, our, weapons</p>
  </blockquote>
  
  <p>But with my data I receive an error:  </p>
  
  <pre><code>supp    conf
  Traceback (most recent call last):
    File "inqui.py", line 15, in &lt;module&gt;
      print [data.domain[i].name for i in itemsets[5][0]]
  IndexError: list index out of range
  </code></pre>
  
  <p>That's my data:</p>
  
  <pre><code>Item1
  Item2, Item2, Item2, Item2, Item7, Item7, Item7, Item7, Item7
  Item1, Item1, Item1, Item1, Item1, Item1, Item1, Item2
  Item4, Item4
  Item1, Item1, Item1, Item1, Item1, Item1, Item1, Item1, Item2
  Item5
  </code></pre>
  
  <p>I checked for spaces and used a barebone/short version of my data with 10 lines like in the example but I still receive this error.<br>
  Where does it come from?</p>