Lecture 2 Add Column in spark dataframe Multiple cases

preview_player
Показать описание
How to add column to a dataframe?
How to add a column by making some operations on existing column?
How to add a column in dataframe and fill it with any particular value?
How to add a column and fill it with any random value?
How to do Operation on this rand function-(Difference between multiplying before and after rand())
What if you wish to apply any condition in random value?--How to use "when" for filling column with conditions??
Рекомендации по теме
Комментарии
Автор

Sir Can you please help me on below query

Df.withColumn(“total_price”, (sum(a)+sum(b)) / c))

karunreddy
welcome to shbcf.ru