I\'m using a lambda function to create a new data frame column based on a custom function, but I\'m having trouble getting it to work. I\'ve posted the code and error below,