pandas: best way to select all columns starting with X,df.loc[(df == 1).any(axis=1)]