title: Python: DataFrame constructor not properly called
body: <p>So im walking thourhg the pandas manual and I dont understand what im doing wrong. Could somebody please help? I mean this is standard code from the manual, except that I use a different random function I believe.</p>
  
  <p><a href="http://pandas.pydata.org/pandas-docs/dev/advanced.html" rel="nofollow">http://pandas.pydata.org/pandas-docs/dev/advanced.html</a> --> <strong>sample window #3</strong></p>
  
  <pre><code>import numpy as np
  from pandas import DataFrame
  import random
  
  arrays = [np.array(['bar', 'bar', 'baz', 'baz', 'foo', 'foo', 'qux', 'qux']),
           np.array(['one', 'two', 'one', 'two', 'one', 'two', 'one', 'two'])]
  
  df = DataFrame(random.random(), index=arrays)
  
  print(df)
  
  &gt;&gt;&gt;DataFrame constructor not properly called!&lt;&lt;&lt;
  </code></pre>