Lecture 2 Add Column in spark dataframe Multiple cases
Prasoon Parashar Prasoon Parashar
1.31K subscribers
2,585 views
58

 Published On Jan 5, 2020

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??

show more

Share/Embed