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)

Questions about programming?Chat with your personal AI assistant