#NEWLINE# def test_constructor_list_of_lists( self ) : #NEWLINE# #INDENT# l = [ [ 1 , 'a' ] , [ 2 , 'b' ] ] #NEWLINE# df = DataFrame ( data = l , columns = [ 'num' , 'str' ] ) #NEWLINE# self . assertTrue ( com . is_integer_dtype ( df [ 'num' ] ) ) #NEWLINE# self . assertEqual ( df [ 'str' ] . dtype , np . object_ ) #NEWLINE# expected = DataFrame ( { #NEWLINE# #INDENT# 0 : range ( 10 ) , #NEWLINE# #UNINDENT# } ) #NEWLINE# data = [ np . array ( x ) for x in range ( 10 ) ] #NEWLINE# result = DataFrame ( data ) #NEWLINE# assert_frame_equal ( result , expected )