xxxxxxxxxx
In [4]: ages = titanic["Age"]
In [5]: ages.head()
Out[5]:
0 22.0
1 38.0
2 26.0
3 35.0
4 35.0
Name: Age, dtype: float64
xxxxxxxxxx
#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)]