#NEWLINE# def test_explicit_conversions( self ) : #NEWLINE# #INDENT# idx = RangeIndex ( 5 ) #NEWLINE# arr = ( np . arange ( 5 , dtype = 'int64' ) * 3.2 ) #NEWLINE# expected = Float64Index ( arr ) #NEWLINE# fidx = ( idx * 3.2 ) #NEWLINE# tm . assert_index_equal ( fidx , expected ) #NEWLINE# fidx = ( 3.2 * idx ) #NEWLINE# tm . assert_index_equal ( fidx , expected ) #NEWLINE# expected = Float64Index ( arr ) #NEWLINE# a = np . zeros ( 5 , dtype = 'float64' ) #NEWLINE# result = ( fidx - a ) #NEWLINE# tm . assert_index_equal ( result , expected ) #NEWLINE# expected = Float64Index ( ( - arr ) ) #NEWLINE# a = np . zeros ( 5 , dtype = 'float64' ) #NEWLINE# result = ( a - fidx ) #NEWLINE# tm . assert_index_equal ( result , expected )