title: Arff Loader : AttributeError: 'dict' object has no attribute 'data'
body: <p>I am trying to load a .arff file into a numpy array using liac-arff library. (<a href="https://github.com/renatopp/liac-arff" rel="noreferrer">https://github.com/renatopp/liac-arff</a>)</p>
  
  <p>This is my code.</p>
  
  <pre><code>import arff, numpy as np
  dataset = arff.load(open('mydataset.arff', 'rb'))
  data = np.array(dataset.data)
  </code></pre>
  
  <p>when executing, I am getting the error.</p>
  
  <pre><code>ArffLoader.py", line 8, in &lt;module&gt;
  data = np.array(dataset.data)
  AttributeError: 'dict' object has no attribute 'data'
  </code></pre>
  
  <p>I have seen similar threads, <a href="https://stackoverflow.com/questions/23016559/smartsheet-data-tracker-attributeerror-dict-object-has-no-attribute-append">Smartsheet Data Tracker: AttributeError: &#39;dict&#39; object has no attribute &#39;append&#39;</a>. I am new to Python and is not able to resolve this issue. How can I fix this?</p>