PySpark When Otherwise | SQL Case When Usage
PySpark When Otherwise and SQL Case When on DataFrame with Examples - Similar to SQL…
0 Comments
August 15, 2020
PySpark When Otherwise and SQL Case When on DataFrame with Examples - Similar to SQL…
Spark DataFrame example of how to add a day, month and year to a Date column using Scala language and Spark SQL Date and Time functions.
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.