#NEWLINE# def test_from_records_with_index_data( self ) : #NEWLINE# #INDENT# df = DataFrame ( np . random . randn ( 10 , 3 ) , columns = [ 'A' , 'B' , 'C' ] ) #NEWLINE# data = np . random . randn ( 10 ) #NEWLINE# df1 = DataFrame . from_records ( df , index = data ) #NEWLINE# assert df1 . index . equals ( Index ( data ) )