I am doing the basic tensorflow iris example and I came across the following well commented statement:
# 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)
My understanding: this is equivalent to:
train_features = train
train_label = train.pop(label_name)
My question: when we assign DataFrame train to train_features in the first statement, then in the second statement we pop the label_name, does that remove label_name from train_features?