I am developing pyspark script for a project. I have input dataframe like this:
+---+---------+ | id|direction| +---+---------+ | 2| up| | 3|