#NEWLINE# def test_map_columnwise( ) : #NEWLINE# #INDENT# colwise = ( t [ 'amount' ] * t [ 'id' ] ) #NEWLINE# expr = colwise . map ( ( lambda x : ( x / 10 ) ) , 'int64' , name = 'mod' ) #NEWLINE# assert ( list ( compute ( expr , data ) ) == [ ( ( row [ 1 ] * row [ 2 ] ) / 10 ) for row in data ] )