#NEWLINE# def test_apply_filter_query_or( test_df ) : #NEWLINE# #INDENT# filters = [ 'col1 < 1 or col2 > 8' ] #NEWLINE# filtered = util . apply_filter_query ( test_df , filters ) #NEWLINE# expected = pd . DataFrame ( { #NEWLINE# #INDENT# 'col1' : [ 0 , 4 ] , #NEWLINE# 'col2' : [ 5 , 9 ] , #NEWLINE# #UNINDENT# } , index = [ 'a' , 'e' ] ) #NEWLINE# pdt . assert_frame_equal ( filtered , expected )