Spark DataSet - Flow operator

Card Puncher Data Processing

If then else

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







Share this page:
Follow us:
Task Runner