#NEWLINE# def test_constructor_dict_dont_upcast( self ) : #NEWLINE# #INDENT# d = { #NEWLINE# #INDENT# 'Col1' : { #NEWLINE# #INDENT# 'Row1' : 'A String' , #NEWLINE# 'Row2' : np . nan , #NEWLINE# #UNINDENT# } , #NEWLINE# #UNINDENT# } #NEWLINE# df = DataFrame ( dm ) #NEWLINE# tm . assertIsInstance ( df [ 'Col1' ] [ 'Row2' ] , float ) #NEWLINE# dm = DataFrame ( [ [ 1 , 2 ] , [ 'a' , 'b' ] ] , index = [ 1 , 2 ] , columns = [ 1 , 2 ] ) #NEWLINE# tm . assertIsInstance ( dm [ 1 ] [ 1 ] , int )