Is it possible to create labels based on the value of certain fields in my data?

For example, I only want to label a column 'name' when 'age' was a certain value etc or a certain field was a given length.

1 Answer 1


Sorry for post, managed to figure it out myself in the end;

def FindLabel ( [a] , [b], [c]  ):
  if [a] == "value":
    return [b] 
    return [c] 

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.