I have a PySpark Data-frame like this:
+----+-----------------+
| id| director_name|
+----+-----------------+
| 123| james cameron|
| 32| gore verbinski|
| 34| sam mendes|
|2345|christopher nolan|
| 987| doug walker|
+----+-----------------+
I need a dict like this:
{123: james cameron, 32: gore verbinski, ...}
I have found a solution using pandas df, but I need to work as parallelized as possible, therefore I'm looking for a spark solution...