Create DataFrame from ndarray/list

# The ndarray used must have the same length>>> d =dict(one =[1.,2.,3.,4.], two =[4,3,2,1])>>> d
{'one':[1.0,2.0,3.0,4.0],'two':[4,3,2,1]}>>> pd.DataFrame(d)
one two
01.0412.0323.0234.01# If an index is given, it also needs to be the same length as list/ndarray>>> pd.DataFrame(d, index =list('abcd'))
one two
a 1.04
b 2.03
c 3.02
d 4.01