titanic_3.py 124 B

1234
  1. full_names.str.split('.').str[0].value_counts()
  2. titanic.loc[full_names.str.startswith('Capt.'), ('Name', 'Age', 'Pclass')]