As specified in the question, I'm trying to generate an hash for each row of RDD. For my purpose I cannot use `zipWithUniqueId()` method, I need one hash of all the columns, for each Row of the RDD.

```
for row in DataFrame.collect():
    return hashlib.sha1(str(row))

```

I know that is the worst way,iterating into rdd, but I'm beginner with pyspark. However the problems is that: I obtain the same hash for each row. I tried to use strong collision resistant hash function but it is too slow. 
Is there some way to solve the problem?
Thanks in advance :)