import snowflake.snowpark.functions as F snowpark_df.with_column('TARGET', F.when(F.col('CLASIFFICATION_FINAL') < 4, 1).otherwise(0))