human
selecting across multiple columns with python pandas?
assistant
Here is some code to select all rows from pandas DataFrame 'df' where the value in column 'A' is greater than 1 or less than -1 in column 'B'.

df[(df['A'] > 1) | (df['B'] < -1)]

#Warning: this code generation is experimental. Please inspect the code for any bugs before executing.