Quantcast
Channel: Data Science, Analytics and Big Data discussions - Topics tagged data_science
Viewing all articles
Browse latest Browse all 787

Need Help in understanding a code snippet from Titanic Passenger Survival Project

$
0
0

@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” here

Thanks,

Mohit

Posts: 4

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 787

Trending Articles