I am using pyspark 1.3.1, I need to generate unique id/number for each row in a dataframe.
Since window functions are not available with Pyspark Version:1.3.1, I am not able to make use of rownumber function.
How I can bring in rownumber without rownumber function and without converting the dataframe into RDD?