convert pyspark dataframe to dictionary