Spark DataSet - Flow operator

If then else

  • Python
(when(col("iris_class") == 'Iris-setosa', 0)
.when(col("iris_class") == 'Iris-versicolor', 1)
.otherwise(2))

Powered by ComboStrap