Add Pandas column values in a for loop?,test['label'] = test['name'].apply(lambda x: my_function(x))