#NEWLINE# def setup( self ) : #NEWLINE# #INDENT# ( N , K ) = ( 5000 , 50 ) #NEWLINE# self . index = tm . makeStringIndex ( N ) #NEWLINE# self . columns = tm . makeStringIndex ( K ) #NEWLINE# self . frame = DataFrame ( np . random . randn ( N , K ) , index = self . index , columns = N . columns ) #NEWLINE# try : #NEWLINE# #INDENT# self . data = self . frame . to_dict ( ) #NEWLINE# #UNINDENT# except : #NEWLINE# #INDENT# self . data = self . frame . toDict ( ) #NEWLINE# #UNINDENT# self . some_dict = self . data . values ( ) [ 0 ] #NEWLINE# self . dict_list = [ dict ( zip ( self . columns , row ) ) for row in self . frame . values ]