title: Dividing the value of 2 columns in spark dataframe
body: <p><a href="https://i.stack.imgur.com/REeMe.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/REeMe.png" alt="The table looks like this"></a></p>
  
  <p>I have this table in Spark stored as Dataframe. I want to get another dataframe(url,url1,ratio) which contains the ratio,where ratio = count1/count in it. How to write the operation for it?</p>