#NEWLINE# def test_1d_other_dtypes( self ) : #NEWLINE# #INDENT# arr = np . random . randn ( 10 ) . astype ( np . float32 ) #NEWLINE# indexer = [ 1 , 2 , 3 , ( - 1 ) ] #NEWLINE# result = algos . take_1d ( arr , indexer ) #NEWLINE# expected = arr . take ( indexer ) #NEWLINE# expected [ ( - 1 ) ] = np . nan #NEWLINE# tm . assert_almost_equal ( result , expected )