@mohitvarma wrote:
Hello,
I have picked uo the following code snippet from titanic passenger survival project on Kaggle
I would like to know the role of “IsAlone” feature/field in the following command.
Its neither being used like a flag nor a feature. Kindly help me understand
for dataset in full_data:
dataset[‘IsAlone’] = 0 // I was able to understand this command
dataset.loc[dataset[‘FamilySize’] == 1, ‘IsAlone’] = 1 // Not able to make out the role of “IsAlone” hereThanks,
Mohit
Posts: 4
Participants: 2