pyspark.sql.functions.when¶
- 
pyspark.sql.functions.when(condition, value)[source]¶ Evaluates a list of conditions and returns one of multiple possible result expressions. If
pyspark.sql.Column.otherwise()is not invoked, None is returned for unmatched conditions.New in version 1.4.0.