Give such a data frame df:
df
id_ val 11111 12 12003 22 88763 19 43721 77 ...
I wish to add a column
if you are using apply in pandas, you should not be using the dataframe again within the lambda function.
your object in all cases within the lambda function should be 'row'.