我正在做基本的tensorflow iris示例,我遇到了以下评论很好的声明:
# 1. Assign the DataFrame's labels (the right-most column) to train_label.
# 2. Delete (pop) the labels from the DataFrame.
# 3. Assign the remainder of the DataFrame to train_features
train_features, train_label = train, train.pop(label_name)
我的理解:这相当于:
train_features = train
train_label = train.pop(label_name)
我的问题:当我们在第一个语句中将dataFrame train分配给train_features时,然后在第二个语句中弹出label_name,是否从train_features中删除label_name?