Simple query with Pandas

inline selection of specific cases from dataframe