#NEWLINE# def test_pass_function( self ) : #NEWLINE# #INDENT# result = self . data . pivot_table ( 'D' , index = ( lambda x : ( x // 5 ) ) , columns = self . data . C ) #NEWLINE# expected = self . data . pivot_table ( 'D' , index = ( self . data . index // 5 ) , columns = 'C' ) #NEWLINE# tm . assert_frame_equal ( result , expected )