PySpark when-otherwise -即使提供了位置参数,也需要位置参数when函数需要两个参数,但您只传递了一个...
pyspark 如何在Spark中使用when().otherwise函数来满足多个条件你可以使用一个技巧,将column.isNull()...
Like SQL "case when" statement and Swith statement from popular programming languages, Spark SQL Dataframe also supports similar syntax using "when otherwise" or we can also use "case when" statement.
或者是在一个when().otherwise()代码块中是否存在吡火花映射,但无法确定正确的语法。