#NEWLINE# def test_parse_dates_combine( self ) : #NEWLINE# #INDENT# raw_dates = Series ( date_range ( '1/1/2001' , periods = 10 ) ) #NEWLINE# df = DataFrame ( { #NEWLINE# #INDENT# 'date' : raw_dates . map ( ( lambda x : str ( x . date ( ) ) ) ) , #NEWLINE# 'time' : raw_dates . map ( ( lambda x : str ( x . time ( ) ) ) ) , #NEWLINE# #UNINDENT# } ) #NEWLINE# res = self . read_html ( df . to_html ( ) , parse_dates = { #NEWLINE# #INDENT# 'datetime' : [ 1 , 2 ] , #NEWLINE# #UNINDENT# } , index_col = 1 ) #NEWLINE# newdf = DataFrame ( { #NEWLINE# #INDENT# 'datetime' : raw_dates , #NEWLINE# #UNINDENT# } ) #NEWLINE# tm . assert_frame_equal ( newdf , newdf [ 0 ] )