#NEWLINE# def test_from_arrays_index_series_timedelta( self ) : #NEWLINE# #INDENT# idx1 = pd . timedelta_range ( '1 days' , freq = 'D' , periods = 3 ) #NEWLINE# idx2 = pd . timedelta_range ( '2 hours' , freq = 'H' , periods = 3 ) #NEWLINE# result = pd . MultiIndex . from_arrays ( [ idx1 , idx2 ] ) #NEWLINE# tm . assert_index_equal ( result . get_level_values ( 0 ) , idx1 ) #NEWLINE# tm . assert_index_equal ( result . get_level_values ( 1 ) , idx2 ) #NEWLINE# result2 = pd . MultiIndex . from_arrays ( [ pd . Series ( idx1 ) , pd . Series ( idx2 ) ] ) #NEWLINE# tm . assert_index_equal ( result2 . get_level_values ( 0 ) , idx1 ) #NEWLINE# tm . assert_index_equal ( result2 . get_level_values ( 1 ) , idx2 ) #NEWLINE# tm . assert_index_equal ( result , result2 )