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.
http://pandas.pydata.org/pandas-docs/dev/advanced.html --> sample window #3
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)
>>>DataFrame constructor not properly called!<<<