#This syntax shows how to select all rows of the DataFrame that contain the values 25, 9 #in any of the columns: df[df.isin([25, 9]).any(axis=1)]