I have code written in pandas that I am being asked to convert to pyspark, but I\'m not that familiar with pyspark. I think I\'ve got most of it, but I have a few lines that