Related Post: Spark Dataframe Create New Column Based On Condition Spark Dataframe Create New Column From Existing