Generation

generate functionTue, 18 Jul 2023

If columns contain null value then select as blank

def select_as_blank(col): return F.when(~(F.isnull(col)), col).otherwise('blank') select_as_blank(df.col)

Want to kickstart your project?Use the new AI Studio to create your code