text_html_output_1.png
import pandas as pd

titanic = pd.read_csv('../input/train.csv')

titanic['Alone'] = titanic.SibSp + titanic.Parch

titanic['Alone'].loc[titanic['Alone'] > 0] = 'With Family'
titanic['Alone'].loc[titanic['Alone'] == 0] = 'Alone'