Human: Select rows from a DataFrame based on values in a column in pandas Assistant: 
Here is some code to select rows whose value of the "B" column is "one" or "three" in the DataFrame `df`

print(df.loc[df['B'].isin(['one', 'three'])])

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