Suppose a pandas dataframe
d = pd.DataFrame({'a':[1,2,3], 'b':[4,5,6], 'c':[7,8,9]}) How can I select all the rows such that 'a'>1, 'b'<6 and 7<='c'<=9 ?
It should result in this case equivalent to the second row of the dataframe. In the solutions suppose a generic dataframe with k keys.