I have an sql query \'case when col1(checknumeric)=1 then col1 else NULL\'
need to implement it in spark. I tried doing it like def is_digit(col1): if col1: return col1.i